This commit is contained in:
Witalij Poljatchek 2024-01-10 23:18:48 +01:00
parent 0e46c6b65b
commit 217fabae7d
1 changed files with 9 additions and 0 deletions

View File

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