Skip to content

Commit

Permalink
docker update
Browse files Browse the repository at this point in the history
  • Loading branch information
kayprogrammer committed Aug 13, 2024
1 parent 28495fd commit aad04ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ FROM nginx:stable-alpine
COPY --from=build /app/dist /usr/share/nginx/html

# Change the default nginx port
RUN sed -i 's/ listen .*/ listen 5000;/' /etc/nginx/conf.d/default.conf
RUN sed -i 's/ listen .*/ listen 5001;/' /etc/nginx/conf.d/default.conf

# Expose the new port
EXPOSE 5000
EXPOSE 5001

# Start nginx server
CMD ["nginx", "-g", "daemon off;"]
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ services:
context: .
target: build
ports:
- "5000:5000"
- "5001:5001"

0 comments on commit aad04ed

Please sign in to comment.