diff --git a/Dockerfile b/Dockerfile index ee2a9f8371287857f119ba09705bf74cfd3a977f..899df1a774a7f801c0b3133e3cbb8d4985fc6e20 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,8 @@ FROM python:3.8-slim as base +# Add ESS specific debian repository mirror +RUN echo "deb https://artifactory.esss.lu.se/artifactory/debian-mirror stable main" | tee /etc/apt/sources.list.d/ess-debian-mirror.list + # Install Python dependencies in an intermediate image # as some requires a compiler (psycopg2) FROM base as builder @@ -65,6 +68,8 @@ RUN apt-get update \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* +RUN rm /etc/apt/sources.list.d/ess-debian-mirror.list + COPY --chown=csi:csi . /app/ WORKDIR /app RUN echo "__version__ = \"$(git describe)\"" > app/_version.py