Skip to content

Commit

Permalink
feat: adding alpine and slim-bullseye flavors
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo committed Feb 21, 2023
1 parent e087610 commit 9cf1475
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
30 changes: 30 additions & 0 deletions python/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
FROM alpine:3.17

LABEL version="1.0"
LABEL maintainer="Platforme <[email protected]>"

RUN apk update &&\
apk add --no-cache \
bash \
ca-certificates \
git \
python3 &&\
python --version

ENV PYTHON_PIP_VERSION 22.3.1
ENV PYTHON_SETUPTOOLS_VERSION 65.5.1
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/d5cb0afaf23b8520f1bbcfed521017b4a95f5c01/public/get-pip.py
ENV PYTHON_GET_PIP_SHA256 394be00f13fa1b9aaa47e911bdb59a09c3b2986472130f30aa0bfaf7f3980637
RUN set -eux; \
wget -O get-pip.py "$PYTHON_GET_PIP_URL"; \
echo "$PYTHON_GET_PIP_SHA256 *get-pip.py" | sha256sum -c -; \
python get-pip.py \
--disable-pip-version-check \
--no-cache-dir \
--no-compile \
"pip==$PYTHON_PIP_VERSION" \
"setuptools==$PYTHON_SETUPTOOLS_VERSION"; \
rm -f get-pip.py; \
pip --version

CMD ["/bin/bash"]
8 changes: 4 additions & 4 deletions python/Dockerfile → python/slim-bullseye/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10-slim

LABEL version="1.0"
LABEL maintainer="Platforme <[email protected]>"
FROM python:3.10-slim

LABEL version="1.0"
LABEL maintainer="Platforme <[email protected]>"

0 comments on commit 9cf1475

Please sign in to comment.