2024-01-10 21:39:56 +00:00
|
|
|
FROM node:bookworm AS build
|
2024-01-02 18:51:59 +00:00
|
|
|
|
2024-01-10 17:46:39 +00:00
|
|
|
RUN node -v
|
|
|
|
|
|
|
|
# make the 'app' folder the current working directory
|
2024-01-10 22:18:48 +00:00
|
|
|
|
|
|
|
RUN echo "----------------------------"
|
|
|
|
RUN pwd
|
|
|
|
RUN ls
|
|
|
|
RUN echo "----------------------------"
|
2024-01-10 21:50:43 +00:00
|
|
|
WORKDIR /dist
|
2024-01-10 21:57:57 +00:00
|
|
|
COPY . .
|
2024-01-10 22:18:48 +00:00
|
|
|
RUN echo "----------------------------"
|
2024-01-10 22:06:59 +00:00
|
|
|
RUN pwd
|
2024-01-10 22:16:46 +00:00
|
|
|
RUN ls
|
2024-01-10 22:18:48 +00:00
|
|
|
RUN echo "----------------------------"
|
2024-01-10 22:16:46 +00:00
|
|
|
|
2024-01-10 21:47:25 +00:00
|
|
|
FROM nginx
|
2024-01-10 22:18:48 +00:00
|
|
|
RUN echo "----------------------------"
|
2024-01-10 22:06:59 +00:00
|
|
|
RUN pwd
|
|
|
|
RUN ls
|
2024-01-10 22:18:48 +00:00
|
|
|
RUN echo "----------------------------"
|
2024-01-10 21:50:43 +00:00
|
|
|
COPY --from=build . /usr/share/nginx/html/
|
2024-01-10 18:02:11 +00:00
|
|
|
|
2024-01-10 21:37:00 +00:00
|
|
|
#RUN rm /etc/nginx/conf.d/default.conf
|
|
|
|
#COPY _nginx/nginx.conf /etc/nginx/conf.d
|