mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 16:03:11 +02:00
feat: simplest 8080 dockerfile
This commit is contained in:
parent
cb9601ddb7
commit
a0bfb28c3e
10
Dockerfile
10
Dockerfile
@ -1,2 +1,8 @@
|
||||
FROM ubuntu:18.04
|
||||
RUN echo 'Hello, World!' > /test.txt
|
||||
# Use a lightweight base image
|
||||
FROM alpine:latest
|
||||
|
||||
# Install a minimal HTTP server
|
||||
RUN apk add --no-cache httpie
|
||||
|
||||
# Command to run when the container starts
|
||||
CMD echo 'Hello, World!' | http-server -p 8080
|
||||
|
||||
Loading…
Reference in New Issue
Block a user