Skip to content

Commit

Permalink
Add the version/revision in the Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Apr 5, 2024
1 parent 2f7cb17 commit 9c5ea2b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docker/dockerfiles/Dockerfile.backend
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ ENV PATH=/root/.local/bin:$PATH
# activate the virtualenv:
RUN . "${VIRTUAL_ENV}/bin/activate"

ARG VERSION
ARG REVISION

ENV VERSION=${VERSION}
ENV REVISION=${REVISION}

RUN touch /var/www/seismic/.version && \
echo "$VERSION+$(echo ${REVISION} | cut -c 1-7)" > /var/www/seismic/.version

ENTRYPOINT ["/init"]

EXPOSE 80

0 comments on commit 9c5ea2b

Please sign in to comment.