Skip to content

Commit 79abf23

Browse files
committed
setupscm version spoof for contribs-api Dockerfile
1 parent ed6857f commit 79abf23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mpcontribs-api/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ COPY requirements/deployment.txt ./requirements.txt
99
RUN pip install $PIP_FLAGS -r requirements.txt
1010
COPY pyproject.toml .
1111
COPY mpcontribs mpcontribs
12-
RUN pip install $PIP_FLAGS --no-deps .
12+
ARG CONTRIBS_VERSION
13+
RUN SETUPTOOLS_SCM_PRETEND_VERSION=${CONTRIBS_VERSION} pip install $PIP_FLAGS --no-deps .
1314
#ENV SETUPTOOLS_SCM_PRETEND_VERSION 0.0.0
1415
#COPY marshmallow-mongoengine marshmallow-mongoengine
1516
#RUN cd marshmallow-mongoengine && pip install $PIP_FLAGS --no-deps -e .

0 commit comments

Comments
 (0)