Sign inSign up

geoffh1977/python

By geoffh1977

•Updated almost 2 years ago

Python Image based on Alpine with a non-root user

Image
0

6.2K

geoffh1977/python repository overview

⁠Python Docker Image With Non-Root Account

pipeline_status docker_downloads

⁠Description

Builds an Alpine Python Docker image with a non-user account and setting the account as the default user.

By doing this, the following issues are prevented:

  • Stops the image from immediately having root level access to a docker host - The switch --user 0 would need to be added to have the container run as the root user.
  • Requires that the command USER root is specifically called before modifying the image during the build process - Some builds do not require the root user for container builds to be completed.

⁠Downloading The Python Container

This repository is connected to Docker Hub - so you will always find the latest builds there. Execute the docker pull command in order to get the required image:

  • geoffh1977/python:latest - The latest build that was completed
  • geoffh1977/python:3 - The latest build of a Major version number
  • geoffh1977/python:3.10 - The latest build of a Minor version series
  • geoffh1977/python:3.10.0-r4 - An Exact Version

Tag summary

Content type

Image

Digest

sha256:8e8b0bcb3…

Size

17.2 MB

Last updated

almost 2 years ago

docker pull geoffh1977/python