Skip to content

moppermonster/alpine-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

alpine-python

Alpine based Python container

About

Alpine based docker image with Python3 and pip.

Docker Hub

moppermonster/alpine-python

Dockerfile

# Install Python
RUN apk add --no-cache python3
# Ensure pip
RUN python3 -m ensurepip && rm -r /usr/lib/python*/ensurepip
# Upgrade pip
RUN pip3 install --upgrade pip setuptools
# Clean up
RUN rm -r /root/.cache

Building

Build

docker build -t alpine-python .

Run

docker run -it alpine-python

Usage

Intended as base image.

FROM moppermonster/alpine-python

COPY app.py /app.py

CMD /usr/bin/python3 /app.py

For those who want to use the interactive Python3 shell run the following:

docker run -it moppermonster/alpine-python

Credits and thanks

Inspiration

About

Alpine based Python container

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published