From e5953b1bf21b5dd4055ea02cca2208450efef6fd Mon Sep 17 00:00:00 2001 From: gsd Date: Mon, 16 Oct 2023 19:48:23 +0300 Subject: [PATCH] way to prod 2 --- docker/Dockerfile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 07a8979..d9c734c 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,16 +1,18 @@ FROM node:18.18-bullseye as builder + +ARG BUILDDATE +ENV BUILDDATE $BUILDDATE +RUN echo "Build Date: $BUILDATE" + RUN git clone https://git.pblr-nyk.pro/gsd/Facti13.Frontend.VueMaterial && \ mv Facti13.Frontend.VueMaterial /app && chown node:node -R /app && chmod 770 -R /app -WORKDIR /app + USER node -ARG BUILDDATE -ENV BUILDDATE $BUILDDATE +WORKDIR /app RUN npm install && npm run build FROM nginx:stable-alpine COPY --from=builder /app/dist /usr/share/nginx/html RUN rm /etc/nginx/conf.d/default.conf COPY srv.conf /etc/nginx/conf.d -CMD ["nginx", "-g", "daemon off;"] -#ENTRYPOINT ['npm', 'run', 'serve'] - +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file