diff --git a/3.10/debian/10/Dockerfile b/3.10/debian/10/Dockerfile new file mode 100644 index 0000000..58d1f5d --- /dev/null +++ b/3.10/debian/10/Dockerfile @@ -0,0 +1,20 @@ +FROM python:3.10-slim-buster +LABEL maintainer "https://github.com/muccg/" + +ENV VIRTUAL_ENV /env +ENV PYTHON_PIP_VERSION 22.1.2 +ENV PIP_NO_CACHE_DIR="off" +ENV PATH $VIRTUAL_ENV/bin:$PATH + +# create a virtual env in $VIRTUAL_ENV and ensure it respects pip version +RUN python3 -m venv $VIRTUAL_ENV \ + && $VIRTUAL_ENV/bin/pip install --upgrade pip==$PYTHON_PIP_VERSION \ + && pip install --upgrade "setuptools" + #&& pip install --upgrade "setuptools>=40.0.0,<=41.0.0" + +RUN mkdir /app + +RUN addgroup --gid 1000 ccg-user \ + && adduser --disabled-password --home /data --no-create-home --system -q --uid 1000 --ingroup ccg-user ccg-user \ + && mkdir /data \ + && chown ccg-user:ccg-user /data diff --git a/3.10/debian/11/Dockerfile b/3.10/debian/11/Dockerfile new file mode 100644 index 0000000..2df47f3 --- /dev/null +++ b/3.10/debian/11/Dockerfile @@ -0,0 +1,20 @@ +FROM python:3.10-slim-bullseye +LABEL maintainer "https://github.com/muccg/" + +ENV VIRTUAL_ENV /env +ENV PYTHON_PIP_VERSION 22.1.2 +ENV PIP_NO_CACHE_DIR="off" +ENV PATH $VIRTUAL_ENV/bin:$PATH + +# create a virtual env in $VIRTUAL_ENV and ensure it respects pip version +RUN python3 -m venv $VIRTUAL_ENV \ + && $VIRTUAL_ENV/bin/pip install --upgrade pip==$PYTHON_PIP_VERSION \ + && pip install --upgrade "setuptools" + #&& pip install --upgrade "setuptools>=40.0.0,<=41.0.0" + +RUN mkdir /app + +RUN addgroup --gid 1000 ccg-user \ + && adduser --disabled-password --home /data --no-create-home --system -q --uid 1000 --ingroup ccg-user ccg-user \ + && mkdir /data \ + && chown ccg-user:ccg-user /data diff --git a/3.9/debian/10/Dockerfile b/3.9/debian/10/Dockerfile new file mode 100644 index 0000000..3c9449a --- /dev/null +++ b/3.9/debian/10/Dockerfile @@ -0,0 +1,20 @@ +FROM python:3.9-slim-buster +LABEL maintainer "https://github.com/muccg/" + +ENV VIRTUAL_ENV /env +ENV PYTHON_PIP_VERSION 20.2.3 +ENV PIP_NO_CACHE_DIR="off" +ENV PATH $VIRTUAL_ENV/bin:$PATH + +# create a virtual env in $VIRTUAL_ENV and ensure it respects pip version +RUN python3 -m venv $VIRTUAL_ENV \ + && $VIRTUAL_ENV/bin/pip install --upgrade pip==$PYTHON_PIP_VERSION \ + && pip install --upgrade "setuptools" + #&& pip install --upgrade "setuptools>=40.0.0,<=41.0.0" + +RUN mkdir /app + +RUN addgroup --gid 1000 ccg-user \ + && adduser --disabled-password --home /data --no-create-home --system -q --uid 1000 --ingroup ccg-user ccg-user \ + && mkdir /data \ + && chown ccg-user:ccg-user /data diff --git a/3.9/debian/11/Dockerfile b/3.9/debian/11/Dockerfile new file mode 100644 index 0000000..74dd6c3 --- /dev/null +++ b/3.9/debian/11/Dockerfile @@ -0,0 +1,20 @@ +FROM python:3.9-slim-bullseye +LABEL maintainer "https://github.com/muccg/" + +ENV VIRTUAL_ENV /env +ENV PYTHON_PIP_VERSION 22.1.2 +ENV PIP_NO_CACHE_DIR="off" +ENV PATH $VIRTUAL_ENV/bin:$PATH + +# create a virtual env in $VIRTUAL_ENV and ensure it respects pip version +RUN python3 -m venv $VIRTUAL_ENV \ + && $VIRTUAL_ENV/bin/pip install --upgrade pip==$PYTHON_PIP_VERSION \ + && pip install --upgrade "setuptools" + #&& pip install --upgrade "setuptools>=40.0.0,<=41.0.0" + +RUN mkdir /app + +RUN addgroup --gid 1000 ccg-user \ + && adduser --disabled-password --home /data --no-create-home --system -q --uid 1000 --ingroup ccg-user ccg-user \ + && mkdir /data \ + && chown ccg-user:ccg-user /data