Skip to content

Commit

Permalink
Merge pull request #6 from ashenBlade/deploy
Browse files Browse the repository at this point in the history
add lazy nginx.conf copy in Dockerfile
  • Loading branch information
ashenBlade authored Oct 28, 2022
2 parents 45da33f + b35cb97 commit ff484ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ RUN npm install --omit=dev
COPY ./src /app/src
COPY ./public /app/public
COPY ./tsconfig.json /app/tsconfig.json
COPY ./nginx.conf /app/nginx.conf
RUN npm run build

FROM nginx:1.16.0-alpine AS production
COPY --from=build /app/build /usr/share/nginx/html
COPY --from=build /app/nginx.conf /etc/nginx/conf.d/default.conf

COPY ./nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit ff484ee

Please sign in to comment.