From 2e319d06bc17436ee293bf601ac01bd04094f4f4 Mon Sep 17 00:00:00 2001 From: Anders Harrisson <anders.harrisson@ess.eu> Date: Mon, 5 Dec 2022 14:55:33 +0100 Subject: [PATCH] Add ESS debian mirror in Dockerfile JIRA INFRA-6350 --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index ee2a9f8..899df1a 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 -- GitLab