diff --git a/dockerfiles/cpp-20.Dockerfile b/dockerfiles/cpp-20.Dockerfile index 6fbd63c..dd2cc64 100644 --- a/dockerfiles/cpp-20.Dockerfile +++ b/dockerfiles/cpp-20.Dockerfile @@ -1,4 +1,6 @@ FROM gcc:12.2.0-bullseye -RUN apt-get update -RUN apt-get install -y cmake \ No newline at end of file +RUN apt-get update && \ + apt-get install --no-install-recommends -y cmake=3.18.* && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* diff --git a/dockerfiles/go-1.19.Dockerfile b/dockerfiles/go-1.19.Dockerfile index cad38a4..23ced9c 100644 --- a/dockerfiles/go-1.19.Dockerfile +++ b/dockerfiles/go-1.19.Dockerfile @@ -6,5 +6,4 @@ WORKDIR /app COPY go.mod go.sum ./ -RUN go mod graph | awk '{if ($1 !~ "@") print $2}' | xargs -r go get - +RUN ash -c "set -exo pipefail; go mod graph | awk '{if (\$1 !~ \"@\") {print \$2}}' | xargs -r go get" diff --git a/dockerfiles/python-3.10.Dockerfile b/dockerfiles/python-3.10.Dockerfile index 8606e4f..071947e 100644 --- a/dockerfiles/python-3.10.Dockerfile +++ b/dockerfiles/python-3.10.Dockerfile @@ -1,6 +1,6 @@ FROM python:3.10-alpine -RUN pip install pipenv +RUN pip install --no-cache-dir "pipenv>=2023.12.1" COPY Pipfile /app/Pipfile COPY Pipfile.lock /app/Pipfile.lock @@ -15,4 +15,3 @@ RUN pipenv install RUN pipenv run python3 -c "1+1" ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="Pipfile,Pipfile.lock" - diff --git a/dockerfiles/python-3.11.Dockerfile b/dockerfiles/python-3.11.Dockerfile index 5b6c513..e377bca 100644 --- a/dockerfiles/python-3.11.Dockerfile +++ b/dockerfiles/python-3.11.Dockerfile @@ -1,6 +1,6 @@ FROM python:3.11-alpine -RUN pip install pipenv +RUN pip install --no-cache-dir "pipenv>=2023.12.1" COPY Pipfile /app/Pipfile COPY Pipfile.lock /app/Pipfile.lock @@ -14,4 +14,4 @@ RUN pipenv install # Force environment creation RUN pipenv run python3 -c "1+1" -ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="Pipfile,Pipfile.lock" \ No newline at end of file +ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="Pipfile,Pipfile.lock" diff --git a/dockerfiles/ruby-2.7.Dockerfile b/dockerfiles/ruby-2.7.Dockerfile index 0ff3cec..9204142 100644 --- a/dockerfiles/ruby-2.7.Dockerfile +++ b/dockerfiles/ruby-2.7.Dockerfile @@ -1,6 +1,6 @@ FROM ruby:2.7-alpine -RUN apk add --update-cache --upgrade curl -RUN apk add --update-cache --upgrade curl-dev +RUN apk add --no-cache --upgrade 'curl>=7.66' +RUN apk add --no-cache --upgrade 'curl-dev>=7.66' WORKDIR /app diff --git a/dockerfiles/ruby-3.2.Dockerfile b/dockerfiles/ruby-3.2.Dockerfile index b23bf27..3c9465c 100644 --- a/dockerfiles/ruby-3.2.Dockerfile +++ b/dockerfiles/ruby-3.2.Dockerfile @@ -1,6 +1,6 @@ FROM ruby:3.2-alpine -RUN apk add --update-cache --upgrade curl -RUN apk add --update-cache --upgrade curl-dev +RUN apk add --no-cache --upgrade 'curl>=7.66' +RUN apk add --no-cache --upgrade 'curl-dev>=7.66' WORKDIR /app