Skip to content

Commit

Permalink
edit nginx history mode
Browse files Browse the repository at this point in the history
  • Loading branch information
baloola committed Aug 7, 2023
1 parent a170409 commit 91b25d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ FROM nginx:1-alpine
COPY --from=build-step /app/dist /usr/share/nginx/html

# change default port to 8080
RUN sed -i 's/\s*listen\s*80;/ listen 8080;/' /etc/nginx/conf.d/default.conf
RUN sed -i 's/\s*listen\s*80;/ listen 8080;/' /etc/nginx/conf.d/default.conf && \
sed -i 's/\s*location \/ {/ location \/ {\n try_files $uri $uri\/ \/index.html;/' /etc/nginx/conf.d/default.conf

EXPOSE 8080

Expand Down

0 comments on commit 91b25d1

Please sign in to comment.