Save the latest git commit ID inside the Docker containers to /app/.git_commit
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
FROM ubuntu:18.04
|
||||
|
||||
ARG DEBUG=true
|
||||
ARG GIT_COMMIT=
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
@@ -8,6 +9,7 @@ COPY ./docker/install.sh ./server/website/requirements.txt /
|
||||
WORKDIR /
|
||||
|
||||
RUN mkdir -p /app \
|
||||
&& ([ -n "$GIT_COMMIT" ] && echo "base=$GIT_COMMIT" > /app/.git_commit || :) \
|
||||
&& chmod +x install.sh \
|
||||
&& ./install.sh base
|
||||
|
||||
|
||||
Reference in New Issue
Block a user