Add git to the Dockerfile

This commit is contained in:
Gabriel Augendre 2018-08-15 11:15:25 +02:00
parent 2bdeda8274
commit 7c36da507a
2 changed files with 3 additions and 5 deletions

View File

@ -1,6 +1,6 @@
FROM python:3.6-alpine
RUN apk add --update postgresql-libs && \
RUN apk add --update postgresql-libs git && \
apk add --udpate --virtual .build-deps gcc musl-dev postgresql-dev tzdata && \
cp /usr/share/zoneinfo/Europe/Paris /etc/localtime && \
echo "Europe/Paris" > /etc/timezone
@ -11,9 +11,7 @@ VOLUME /app/staticfiles
RUN pip3 install pipenv
COPY Pipfile Pipfile.lock ./
RUN pipenv install
RUN apk del .build-deps
RUN pipenv install && apk del .build-deps
COPY . ./

View File

@ -81,7 +81,7 @@ TEMPLATES = [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
# 'gym.context_processors.git_version',
'gym.context_processors.git_version',
],
},
},