Sign inSign up

junnuru/python-server

By junnuru

•Updated about 1 year ago

Image
0

82

junnuru/python-server repository overview

The image was created with the following entries

$ vim Containerfile

FROM <REPOSITORY_NAME followed by the base image tag>

RUN adduser
--no-create-home
--system
--shell /usr/sbin/nologin
python-server &&
mkdir /server &&
chown -R 'python-server:python-server' /server

WORKDIR /server

USER python-server

CMD ["python3", "-m", "http.server"]

:wq!

$

$ echo Hello Python Server > /www/index.html

$ ls -ltr /www/index.html

$podman run -d --name python-server --volume /www:/servr:Z -p 8000:8000 python-server:latest

Tag summary

Content type

Image

Digest

sha256:a2f9c90da…

Size

78 MB

Last updated

about 1 year ago

docker pull junnuru/python-server