Skip to content

Commit cdc412e

Browse files
committed
Move git version generation to the end
1 parent 02fe430 commit cdc412e

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

bblab.dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,6 @@ COPY phylodating_setup/logwatcher.sh /var/www/phylodating/logwatcher.sh
134134
# copy source code
135135
COPY alldata /alldata
136136

137-
# Capture git version information during build
138-
COPY .git /tmp/bblab-git
139-
RUN cd /tmp/bblab-git && \
140-
git --git-dir=/tmp/bblab-git reset --hard && \
141-
git --git-dir=/tmp/bblab-git describe --always --dirty --tags > /BBLAB_SITE_VERSION 2>/dev/null && \
142-
rm -rf /tmp/bblab-git
143-
144137
RUN chown -R www-data:varwwwusers /alldata /tmp/download
145138

146139
USER www-data
@@ -208,3 +201,10 @@ LABEL build_date=$CI_BUILD_DATE \
208201
#ignoring this will set it to the standard directory
209202
ARG WORKINGDIR=/alldata
210203
WORKDIR $WORKINGDIR
204+
205+
# Capture git version information during build
206+
COPY .git /tmp/bblab-git
207+
RUN cd /tmp/bblab-git && \
208+
git --git-dir=/tmp/bblab-git reset --hard && \
209+
git --git-dir=/tmp/bblab-git describe --always --dirty --tags > /BBLAB_SITE_VERSION 2>/dev/null && \
210+
rm -rf /tmp/bblab-git

0 commit comments

Comments
 (0)