This commit is contained in:
Witalij Poljatchek 2024-01-11 02:13:21 +01:00
parent 92daa55309
commit e1119c4b42
1 changed files with 4 additions and 6 deletions

View File

@ -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