2020-04-09 11:00:30 +02:00
|
|
|
# we are rebuilding on each deploy to cope with the API_URL environment URL
|
2020-07-27 22:48:04 +02:00
|
|
|
FROM thecodingmachine/nodejs:14-apache
|
2020-04-09 11:00:30 +02:00
|
|
|
|
2020-04-11 15:11:22 +02:00
|
|
|
COPY --chown=docker:docker . .
|
2020-04-09 11:00:30 +02:00
|
|
|
RUN yarn install
|
|
|
|
|
|
|
|
ENV NODE_ENV=production
|
|
|
|
ENV STARTUP_COMMAND_1="yarn run build"
|
|
|
|
ENV APACHE_DOCUMENT_ROOT=dist/
|