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 FROM node:bookworm AS build
#RUN node -v RUN node -v
#WORKDIR /app
FROM nginx
WORKDIR /app WORKDIR /app
COPY . . COPY . .
#COPY --from=build /app/dist /usr/share/nginx/html/ FROM nginx
COPY /app/dist /usr/share/nginx/html/ COPY --from=build /app/dist /usr/share/nginx/html/
RUN rm /etc/nginx/conf.d/default.conf RUN rm /etc/nginx/conf.d/default.conf
COPY _nginx/nginx.conf /etc/nginx/conf.d COPY _nginx/nginx.conf /etc/nginx/conf.d