From cfe13d00145f2f6473aa4db7b3c7baa38234b590 Mon Sep 17 00:00:00 2001 From: James Cuzella Date: Fri, 25 Oct 2024 13:15:29 -0600 Subject: [PATCH] Decouple from unmaintained upstream image: Last static Python 2.7.12 release --- Dockerfile | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ef6eaf4..8adc299 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,19 @@ -FROM elyase/staticpython +# The smallest docker container using busybox and +# [StaticPython](https://github.com/pts/staticpython) +# Originally based on elyase/staticpython by Yaser Martinez Palenzuela <@elyase> +# Source: https://github.com/elyase/docker/tree/master/staticpython +FROM busybox +LABEL org.opencontainers.image.authors='James Cuzella <@trinitronx>, Yaser Martinez Palenzuela <@elyase>' +LABEL org.opencontainers.image.url=https://hub.docker.com/repository/docker/trinitronx/python-simplehttpserver +LABEL org.opencontainers.image.documentation=https://github.com/trinitronx/docker-python-simplehttpserver/blob/master/README.md +LABEL org.opencontainers.image.source=https://github.com/trinitronx/docker-python-simplehttpserver +LABEL org.opencontainers.image.licenses=GPL-3.0-or-later + +ARG PYTHON_BIN=python3.2-static +ARG PYTHON_URL=https://github.com/pts/staticpython/raw/refs/heads/master/release/${PYTHON_BIN} + +ADD ${PYTHON_URL} /bin/python +RUN chmod 0755 /bin/python WORKDIR /var/www/ EXPOSE 8080 CMD [ "python", "-m", "SimpleHTTPServer", "8080" ]