feat: exposed port 8080 dockerfile

This commit is contained in:
Krzysztof R. 2024-05-11 16:14:22 +02:00
parent a0bfb28c3e
commit dff7cc6474

View File

@ -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