mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
fix maintenance
This commit is contained in:
parent
87a5daa7a3
commit
a2e93bb17b
@ -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/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user