fix maintenance

This commit is contained in:
Ulf Gebhardt 2021-04-17 14:45:07 +02:00
parent 87a5daa7a3
commit a2e93bb17b
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -5,7 +5,7 @@ FROM node:12.19.0-alpine3.10 as base
# ENVs # ENVs
## DOCKER_WORKDIR would be a classical ARG, but that is not multi layer persistent - shame ## DOCKER_WORKDIR would be a classical ARG, but that is not multi layer persistent - shame
ENV DOCKER_WORKDIR="/develop-webapp" ENV DOCKER_WORKDIR="/app"
## We Cannot do `$(date -u +'%Y-%m-%dT%H:%M:%SZ')` here so we use unix timestamp=0 ## We Cannot do `$(date -u +'%Y-%m-%dT%H:%M:%SZ')` here so we use unix timestamp=0
ARG BBUILD_DATE="1970-01-01T00:00:00.00Z" ARG BBUILD_DATE="1970-01-01T00:00:00.00Z"
ENV BUILD_DATE=$BBUILD_DATE ENV BUILD_DATE=$BBUILD_DATE
@ -78,6 +78,6 @@ RUN yarn run generate
################################################################################## ##################################################################################
FROM nginx:alpine as production FROM nginx:alpine as production
COPY --from=build ./develop-webapp/dedist/ /usr/share/nginx/html/ COPY --from=base ./app/dedist/ /usr/share/nginx/html/
RUN rm /etc/nginx/conf.d/default.conf RUN rm /etc/nginx/conf.d/default.conf
COPY maintenance/nginx/custom.conf /etc/nginx/conf.d/ COPY maintenance/nginx/custom.conf /etc/nginx/conf.d/