Python is an interpreted, interactive, object-oriented, open-source programming language.
9.9K
The Python programming language.
This image packages releases from https://github.com/docker-library/python
For best practices on using Python container images, refer to https://pythonspeed.com/docker/
The Python interpreter is the default command running in this image. Typing an end-of-file character (Control-D on Linux, Control-Z on Windows) causes the interpreter to exit. You can also exit the interpret by typing in the command: quit().
docker run -it --rm \
docker.io/boxcutter/python:3.11-jammy
For single file projects, you can run a Python script by using the container image directly:
docker run -it --rm \
--mount type=bind,source="$(pwd)",target=/usr/src/myapp \
--workdir /usr/src/myapp \
docker.io/boxcutter/python:3.11-jammy python your-script.py
FROM docker.io/boxcutter/python:3.11-jammy
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD [ "python", "./your-daemon-or-script.py" ]
Content type
Image
Digest
sha256:39e155bfd…
Size
44.3 MB
Last updated
9 months ago
docker pull boxcutter/python:3.11-slim-noble