File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ FROM python:slim AS src
32
32
RUN apt-get update && \
33
33
DEBIAN_FRONTEND=noninteractive \
34
34
apt-get install -y --no-install-recommends git
35
+ ARG VERSION
36
+ ENV SETUPTOOLS_SCM_PRETEND_VERSION=$VERSION
37
+
35
38
RUN python -m pip install -U pip build
36
39
COPY . /src
37
40
RUN python -m build /src
@@ -197,11 +200,14 @@ RUN find $HOME -type d -exec chmod go=u {} + && \
197
200
# Best practices
198
201
RUN ldconfig
199
202
203
+ # Update version
204
+ RUN export VERSION=$(python -m mriqc --version | awk '{print $NF}' ) \
205
+ && echo "VERSION=$VERSION" >> /etc/environment
206
+
200
207
WORKDIR /tmp/
201
208
202
209
# Run mriqc by default
203
210
ENTRYPOINT ["/opt/conda/bin/mriqc" ]
204
- ARG VERSION
205
211
ARG BUILD_DATE
206
212
ARG VCS_REF
207
213
LABEL org.label-schema.build-date=$BUILD_DATE \
You can’t perform that action at this time.
0 commit comments