From e1119c4b42743f96f848f28bd7e8547a21effd69 Mon Sep 17 00:00:00 2001 From: Witalij Poljatchek Date: Thu, 11 Jan 2024 02:13:21 +0100 Subject: [PATCH] . --- Dockerfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index b0fa0a1..820ce10 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,8 @@ -#FROM node:bookworm AS build -#RUN node -v -#WORKDIR /app -FROM nginx +FROM node:bookworm AS build +RUN node -v WORKDIR /app COPY . . -#COPY --from=build /app/dist /usr/share/nginx/html/ -COPY /app/dist /usr/share/nginx/html/ +FROM nginx +COPY --from=build /app/dist /usr/share/nginx/html/ RUN rm /etc/nginx/conf.d/default.conf COPY _nginx/nginx.conf /etc/nginx/conf.d \ No newline at end of file