Browse Source

way to prod 2

master
gsd 1 year ago
parent
commit
e5953b1bf2
  1. 12
      docker/Dockerfile

12
docker/Dockerfile

@ -1,10 +1,14 @@
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
@ -12,5 +16,3 @@ 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']

Loading…
Cancel
Save