mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-06 16:43:01 +02:00
feat: exposed port 8080 dockerfile
This commit is contained in:
parent
a0bfb28c3e
commit
dff7cc6474
12
Dockerfile
12
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
|
RUN apk add --no-cache httpie
|
||||||
|
|
||||||
# Command to run when the container starts
|
# Set the default listening port
|
||||||
CMD echo 'Hello, World!' | http-server -p 8080
|
ENV PORT 8080
|
||||||
|
|
||||||
|
# Command to start the server
|
||||||
|
CMD http-server -p $PORT
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user