Skip to content
This repository was archived by the owner on Apr 23, 2024. It is now read-only.

Add Python 3.10.5 #42

Merged
merged 2 commits into from
Jun 14, 2022
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
1 change: 1 addition & 0 deletions .github/workflows/build-and-push-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
- "3.10.2"
- "3.10.3"
- "3.10.4"
- "3.10.5"
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
31 changes: 31 additions & 0 deletions docker/alpine/3.10.5/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM python:3.10.5-alpine

ARG POETRY_VERSION=1.1.13
ARG TINI_VERSION=v0.19.0

ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PIP_NO_CACHE_DIR=off \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100 \
POETRY_VIRTUALENVS_IN_PROJECT=false \
POETRY_NO_INTERACTION=1 \
POETRY_VERSION=${POETRY_VERSION} \
POETRY_HOME=/usr/local/bin \
VENV_PATH=/venv \
TINI_VERSION=${TINI_VERSION}

RUN apk update \
&& apk add gcc musl-dev python3-dev libffi-dev openssl-dev cargo

RUN wget --no-check-certificate --quiet https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-amd64 \
&& wget --no-check-certificate --quiet https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-amd64.sha256sum \
&& echo "$(cat tini-amd64.sha256sum)" | sha256sum -c \
&& chmod +x tini-amd64 \
&& mv tini-amd64 /usr/local/bin/tini

RUN addgroup --gid 10001 nonroot && \
adduser --ingroup nonroot --uid 10000 --system --home /home/nonroot nonroot

RUN pip install "poetry==$POETRY_VERSION"
RUN python -m venv $VENV_PATH
24 changes: 24 additions & 0 deletions docker/bullseye/3.10.5/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM python:3.10.5-bullseye

ARG POETRY_VERSION=1.1.13

ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PIP_NO_CACHE_DIR=off \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100 \
POETRY_VIRTUALENVS_IN_PROJECT=false \
POETRY_NO_INTERACTION=1 \
POETRY_VERSION=${POETRY_VERSION} \
POETRY_HOME=/usr/local/bin \
VENV_PATH=/venv

RUN addgroup --gid 10001 nonroot && \
adduser --uid 10000 --system --home /home/nonroot nonroot && \
usermod -g nonroot nonroot

RUN apt-get update && \
apt-get install tini --no-install-recommends -y

RUN pip install "poetry==$POETRY_VERSION"
RUN python -m venv $VENV_PATH
24 changes: 24 additions & 0 deletions docker/buster/3.10.5/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM python:3.10.5-buster

ARG POETRY_VERSION=1.1.13

ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PIP_NO_CACHE_DIR=off \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100 \
POETRY_VIRTUALENVS_IN_PROJECT=false \
POETRY_NO_INTERACTION=1 \
POETRY_VERSION=${POETRY_VERSION} \
POETRY_HOME=/usr/local/bin \
VENV_PATH=/venv

RUN addgroup --gid 10001 nonroot && \
adduser --uid 10000 --system --home /home/nonroot nonroot && \
usermod -g nonroot nonroot

RUN apt-get update && \
apt-get install tini --no-install-recommends -y

RUN pip install "poetry==$POETRY_VERSION"
RUN python -m venv $VENV_PATH
24 changes: 24 additions & 0 deletions docker/slim/3.10.5/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM python:3.10.5-slim

ARG POETRY_VERSION=1.1.13

ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PIP_NO_CACHE_DIR=off \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100 \
POETRY_VIRTUALENVS_IN_PROJECT=false \
POETRY_NO_INTERACTION=1 \
POETRY_VERSION=${POETRY_VERSION} \
POETRY_HOME=/usr/local/bin \
VENV_PATH=/venv

RUN addgroup --gid 10001 nonroot && \
adduser --uid 10000 --system --home /home/nonroot nonroot && \
usermod -g nonroot nonroot

RUN apt-get update && \
apt-get install tini --no-install-recommends -y

RUN pip install "poetry==$POETRY_VERSION"
RUN python -m venv $VENV_PATH