Skip to content

Commit f7bf419

Browse files
author
Dominik Falkner
committed
chore: Ensure working docker images
2 parents e6106d4 + d9d38ca commit f7bf419

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

‎{{ cookiecutter.__package_name_kebab_case }}/Dockerfile-base‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# This dockerfile serves as a base for all testing images.
22
# It contains the minimal dependencies and is therefore smaller.
3-
FROM registry.risc-software.at/common/ci-templates/python/pyenv:latest
4-
3+
from debian:stable-slim
54
ARG PYTHON_VERSION={{cookiecutter.python_version}}
6-
ARG POETRY_VERSION=1.5.1
5+
ARG POETRY_VERSION=1.7.1
6+
7+
ENV DEBIAN_FRONTEND noninteractive
78
LABEL maintainer="{{cookiecutter.author_name}} <{{cookiecutter.author_email}}>"
89

910
RUN apt-get update && apt-get install -yq \
@@ -34,8 +35,6 @@ RUN set -ex \
3435
&& pyenv update \
3536
&& eval "$(pyenv init -)" && pyenv --version
3637

37-
RUN pip install --upgrade pip
38-
3938
# Install python and set interpreter
4039
RUN pyenv install -s ${PYTHON_VERSION} && pyenv global ${PYTHON_VERSION}
4140

@@ -56,3 +55,4 @@ RUN poetry install --without dev --all-extras --no-root
5655

5756
# Copy the rest of the repository
5857
ADD . .
58+

‎{{ cookiecutter.__package_name_kebab_case }}/Dockerfile-test‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# This dockerfile serves as a base for all testing images.
2-
# It contains all dependencies and is therefore bigger.
3-
FROM registry.risc-software.at/common/ci-templates/python/pyenv:latest
4-
2+
# It contains the minimal dependencies and is therefore smaller.
3+
from debian:stable-slim
54
ARG PYTHON_VERSION={{cookiecutter.python_version}}
6-
ARG POETRY_VERSION=1.5.1
5+
ARG POETRY_VERSION=1.7.1
6+
7+
ENV DEBIAN_FRONTEND noninteractive
78
LABEL maintainer="{{cookiecutter.author_name}} <{{cookiecutter.author_email}}>"
89

910
RUN apt-get update && apt-get install -yq \
@@ -34,8 +35,6 @@ RUN set -ex \
3435
&& pyenv update \
3536
&& eval "$(pyenv init -)" && pyenv --version
3637

37-
RUN pip install --upgrade pip
38-
3938
# Install python and set interpreter
4039
RUN pyenv install -s ${PYTHON_VERSION} && pyenv global ${PYTHON_VERSION}
4140

0 commit comments

Comments
 (0)