diff --git a/libs/indice_pollution/Dockerfile b/libs/indice_pollution/Dockerfile index c9a5d4e1..2266916e 100644 --- a/libs/indice_pollution/Dockerfile +++ b/libs/indice_pollution/Dockerfile @@ -5,13 +5,13 @@ ARG PYTHON_VERSION=3.11.3-slim@sha256:7b866f12347fbfccbb73284d9c04bbd67b5f9cca8b FROM python:$PYTHON_VERSION AS base RUN pip install poetry WORKDIR /code -RUN apt update && apt install -y --no-install-recommends gcc libc6-dev \ - && rm -rf /var/lib/apt/lists/* - + ######## # Install dependencies only when needeed FROM base AS installer - +RUN chmod 1777 /tmp +RUN apt-get update && apt-get install -y --no-install-recommends gcc libc6-dev \ + && rm -rf /var/lib/apt/lists/* ADD pyproject.toml poetry.toml poetry.lock ./ RUN poetry install --without dev