From d5a790ca7b82682a4aabf913c2f192743657a34f Mon Sep 17 00:00:00 2001 From: Nitin Singh Date: Thu, 16 Nov 2023 14:39:00 +0530 Subject: [PATCH] Dockerfile update --- loadbalancer/Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 loadbalancer/Dockerfile diff --git a/loadbalancer/Dockerfile b/loadbalancer/Dockerfile new file mode 100644 index 0000000..3266e5c --- /dev/null +++ b/loadbalancer/Dockerfile @@ -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;"] \ No newline at end of file