Skip to content

Commit

Permalink
Do not mount .git anymore when building sdx-controller image
Browse files Browse the repository at this point in the history
We do not use setuptools_scm anymore.
  • Loading branch information
sajith committed Aug 21, 2024
1 parent 6f48efe commit 923e8d5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 923e8d5

Please sign in to comment.