File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
88This 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
1414Usage Example
You can’t perform that action at this time.
0 commit comments