From dff7cc647436cfe7ca8bff96a6b1869e22a825d2 Mon Sep 17 00:00:00 2001 From: "Krzysztof R." Date: Sat, 11 May 2024 16:14:22 +0200 Subject: [PATCH] feat: exposed port 8080 dockerfile --- Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 83e26f96..091b8459 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,10 @@ -# Use a lightweight base image -FROM alpine:latest +FROM alpine:latest -# Install a minimal HTTP server +# Install dependencies RUN apk add --no-cache httpie -# Command to run when the container starts -CMD echo 'Hello, World!' | http-server -p 8080 +# Set the default listening port +ENV PORT 8080 + +# Command to start the server +CMD http-server -p $PORT