-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ripe-tech/hg/python
feat: adding alpine and slim-bullseye flavors
- Loading branch information
Showing
2 changed files
with
34 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]>" |