Skip to content

Commit

Permalink
fix deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
arlet committed Feb 22, 2024
1 parent df8da7d commit 13032b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ COPY . .
RUN npm install
RUN npm run build

COPY . out
COPY out .

FROM nginx:alpine as run

RUN rm -rf /usr/share/nginx/html/*
COPY --from=build /out /usr/share/nginx/html
COPY --from=build out /usr/share/nginx/html

COPY --from=build ./nginx.conf /etc/nginx/nginx.conf
COPY --from=build nginx.conf /etc/nginx/nginx.conf

ENTRYPOINT ["nginx", "-g", "daemon off;"]

0 comments on commit 13032b8

Please sign in to comment.