Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 0 additions & 36 deletions .github/workflows/build-and-push.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.19
FROM alpine:3.20

# This hack is widely applied to avoid python printing issues in docker containers.
# See: https://github.com/Docker-Hub-frolvlad/docker-alpine-python3/pull/13
Expand All @@ -9,7 +9,7 @@ RUN echo "**** install Python ****" && \
if [ ! -e /usr/bin/python ]; then ln -sf python3 /usr/bin/python ; fi && \
\
echo "**** install pip ****" && \
rm /usr/lib/python3.11/EXTERNALLY-MANAGED && \
rm /usr/lib/python3.12/EXTERNALLY-MANAGED && \
python -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,26 @@
[![Docker Pulls](https://img.shields.io/docker/pulls/frolvlad/alpine-python3.svg?style=flat-square)](https://hub.docker.com/r/frolvlad/alpine-python3/)


Python 3.11 Docker image
Python 3.12 Docker image
========================

This image is based on Alpine Linux image, which is only a 5MB image, and contains
[Python 3.x](https://www.python.org/).

This image is only 71MB on disk.
This image is only 67MB on disk.


Usage Example
-------------

```bash
$ docker run --rm frolvlad/alpine-python3 python3 -c 'print("Hello World")'
$ docker run --rm dovetailworld/alpine-python3 python3 -c 'print("Hello World")'
```

Once you have run this command you will get printed 'Hello World' from Python! Or use it interactivelly:

```bash
$ docker run -it --rm frolvlad/alpine-python3 python3
$ docker run -it --rm dovetailworld/alpine-python3 python3
```


NOTE: `pip`/`pip3` is also available in this image.