aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorGravatar Senjan21 <[email protected]>2021-03-02 18:54:34 +0100
committerGravatar Senjan21 <[email protected]>2021-03-02 18:54:34 +0100
commit4fcdfb086be0e8729630f49b908d03b80be66d27 (patch)
treeae0462f150073a1f34fb21990f478ad9fe6fe2b5 /Dockerfile
parentset `self.cleaning` to False once done cleaning (diff)
parentMerge pull request #1440 from bast0006/master (diff)
Merge remote-tracking branch 'origin/master' into cleanrework
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 06a538b2a..1a75e5669 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -6,6 +6,11 @@ ENV PIP_NO_CACHE_DIR=false \
PIPENV_IGNORE_VIRTUALENVS=1 \
PIPENV_NOSPIN=1
+RUN apt-get -y update \
+ && apt-get install -y \
+ git \
+ && rm -rf /var/lib/apt/lists/*
+
# Install pipenv
RUN pip install -U pipenv
@@ -16,6 +21,12 @@ WORKDIR /bot
COPY Pipfile* ./
RUN pipenv install --system --deploy
+# Define Git SHA build argument
+ARG git_sha="development"
+
+# Set Git SHA environment variable for Sentry
+ENV GIT_SHA=$git_sha
+
# Copy the source code in last to optimize rebuilding the image
COPY . .