aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-04-27 11:04:02 +0100
committerGravatar GitHub <[email protected]>2021-04-27 11:04:02 +0100
commit4a5980c71318eb0a0db1f431ab53a2e763d7ecd7 (patch)
treeb50da96c6c01f9d21fceac7e5f67455ea209a7b6 /Dockerfile
parentMerge two comments into one (diff)
parentMerge pull request #1426 from python-discord/feat/1365/add-bot-badges-to-user (diff)
Merge branch 'main' into master
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 . .