diff options
| author | 2021-03-02 18:54:34 +0100 | |
|---|---|---|
| committer | 2021-03-02 18:54:34 +0100 | |
| commit | 4fcdfb086be0e8729630f49b908d03b80be66d27 (patch) | |
| tree | ae0462f150073a1f34fb21990f478ad9fe6fe2b5 /Dockerfile | |
| parent | set `self.cleaning` to False once done cleaning (diff) | |
| parent | Merge pull request #1440 from bast0006/master (diff) | |
Merge remote-tracking branch 'origin/master' into cleanrework
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 11 |
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 . . |