-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (17 loc) · 1.01 KB
/
Dockerfile
File metadata and controls
19 lines (17 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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" ]