This commit is contained in:
Witalij Poljatchek 2024-01-10 23:53:46 +01:00
parent 7853ba2685
commit 662c6e3500
1 changed files with 4 additions and 14 deletions

View File

@ -2,22 +2,12 @@ FROM node:bookworm AS build
RUN node -v
# make the 'app' folder the current working directory
RUN pwd
RUN ls
WORKDIR /dist
RUN pwd
RUN ls
#COPY . .
WORKDIR /app
COPY . .
#FROM nginx
#RUN echo "----------------------------"
#RUN pwd
#RUN ls
#RUN echo "----------------------------"
#COPY --from=build . /usr/share/nginx/html/
FROM nginx
COPY --from=build dist/ /usr/share/nginx/html/
#RUN rm /etc/nginx/conf.d/default.conf
#COPY _nginx/nginx.conf /etc/nginx/conf.d