From 923e8d57f43f6c0ffd71361991def8546beeeac3 Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Wed, 21 Aug 2024 11:09:18 -0500 Subject: [PATCH] Do not mount .git anymore when building sdx-controller image We do not use setuptools_scm anymore. --- Dockerfile | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3d2c391..af42244 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,12 +23,6 @@ ENV PATH="/opt/venv/bin:$PATH" COPY . /usr/src/app -# In order to make setuptools_scm work during container build, we -# temporarily bind-mount .git. Via -# https://github.com/pypa/setuptools_scm/issues/77#issuecomment-844927695 -RUN --mount=source=.git,target=.git,type=bind \ - pip install --no-cache-dir .[wsgi] - # The final image. FROM python:3.9-slim-bullseye AS sdx-runtime-image