1 changed files with 8 additions and 6 deletions
@ -1,16 +1,18 @@ |
|||||
FROM node:18.18-bullseye as builder |
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 && \ |
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 |
mv Facti13.Frontend.VueMaterial /app && chown node:node -R /app && chmod 770 -R /app |
||||
WORKDIR /app |
|
||||
USER node |
USER node |
||||
ARG BUILDDATE |
WORKDIR /app |
||||
ENV BUILDDATE $BUILDDATE |
|
||||
RUN npm install && npm run build |
RUN npm install && npm run build |
||||
|
|
||||
FROM nginx:stable-alpine |
FROM nginx:stable-alpine |
||||
COPY --from=builder /app/dist /usr/share/nginx/html |
COPY --from=builder /app/dist /usr/share/nginx/html |
||||
RUN rm /etc/nginx/conf.d/default.conf |
RUN rm /etc/nginx/conf.d/default.conf |
||||
COPY srv.conf /etc/nginx/conf.d |
COPY srv.conf /etc/nginx/conf.d |
||||
CMD ["nginx", "-g", "daemon off;"] |
CMD ["nginx", "-g", "daemon off;"] |
||||
#ENTRYPOINT ['npm', 'run', 'serve'] |
|
||||
|
|
Loading…
Reference in new issue