From a0bfb28c3e4e6b23fd46238c6c5f67df5614c0ca Mon Sep 17 00:00:00 2001 From: "Krzysztof R." Date: Sat, 11 May 2024 16:10:37 +0200 Subject: [PATCH] feat: simplest 8080 dockerfile --- Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e0b95088..83e26f96 100644 --- a/Dockerfile +++ b/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