Skip to content

Instantly share code, notes, and snippets.

@janakiramm
Created July 20, 2025 23:19
Show Gist options
  • Select an option

  • Save janakiramm/d01f76438992d7f26571f46f1f00ec85 to your computer and use it in GitHub Desktop.

Select an option

Save janakiramm/d01f76438992d7f26571f46f1f00ec85 to your computer and use it in GitHub Desktop.
Dockerfile
FROM docker.io/python:alpine
WORKDIR /content
RUN apk add curl
RUN echo '<!DOCTYPE html><html><head><title>Hello</title></head><body><h1>Hello, world!</h1></body></html>' > index.html
CMD ["python3", "-m", "http.server", "80", "--bind", "0.0.0.0"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment