Skip to content

Commit

Permalink
Dockerfile update
Browse files Browse the repository at this point in the history
  • Loading branch information
nitin27may committed Nov 16, 2023
1 parent a0aacdd commit d5a790c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions loadbalancer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Use the standard Nginx image from Docker Hub
FROM nginx
# Copy the configuration file from the current directory and paste
# it inside the container to use it as Nginx's default config.
COPY nginx.conf /etc/nginx/nginx.conf
# Port 8080 of the container will be exposed and then mapped to port
# 8080 of our host machine via Compose. This way we'll be able to
# access the server via localhost:8080 on our host.
EXPOSE 80

# Start Nginx when the container has provisioned.
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit d5a790c

Please sign in to comment.