Skip to content

Commit 619021e

Browse files
committed
Migrated to Alpine 3.19 (Python 3.11)
1 parent 1d9eed6 commit 619021e

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.18
1+
FROM alpine:3.19
22

33
# This hack is widely applied to avoid python printing issues in docker containers.
44
# See: https://github.com/Docker-Hub-frolvlad/docker-alpine-python3/pull/13
@@ -9,7 +9,8 @@ RUN echo "**** install Python ****" && \
99
if [ ! -e /usr/bin/python ]; then ln -sf python3 /usr/bin/python ; fi && \
1010
\
1111
echo "**** install pip ****" && \
12-
python3 -m ensurepip && \
12+
rm /usr/lib/python3.11/EXTERNALLY-MANAGED && \
13+
python -m ensurepip && \
1314
rm -r /usr/lib/python*/ensurepip && \
14-
pip3 install --no-cache --upgrade pip setuptools wheel && \
15-
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi
15+
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
16+
pip install --no-cache --upgrade pip setuptools wheel

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
[![Docker Pulls](https://img.shields.io/docker/pulls/frolvlad/alpine-python3.svg?style=flat-square)](https://hub.docker.com/r/frolvlad/alpine-python3/)
33

44

5-
Python 3.9 Docker image
6-
=======================
5+
Python 3.11 Docker image
6+
========================
77

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

11-
This image is only 63MB on disk.
11+
This image is only 71MB on disk.
1212

1313

1414
Usage Example

0 commit comments

Comments
 (0)