Add git to the Dockerfile
This commit is contained in:
parent
2bdeda8274
commit
7c36da507a
2 changed files with 3 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
FROM python:3.6-alpine
|
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 && \
|
apk add --udpate --virtual .build-deps gcc musl-dev postgresql-dev tzdata && \
|
||||||
cp /usr/share/zoneinfo/Europe/Paris /etc/localtime && \
|
cp /usr/share/zoneinfo/Europe/Paris /etc/localtime && \
|
||||||
echo "Europe/Paris" > /etc/timezone
|
echo "Europe/Paris" > /etc/timezone
|
||||||
|
@ -11,9 +11,7 @@ VOLUME /app/staticfiles
|
||||||
|
|
||||||
RUN pip3 install pipenv
|
RUN pip3 install pipenv
|
||||||
COPY Pipfile Pipfile.lock ./
|
COPY Pipfile Pipfile.lock ./
|
||||||
RUN pipenv install
|
RUN pipenv install && apk del .build-deps
|
||||||
|
|
||||||
RUN apk del .build-deps
|
|
||||||
|
|
||||||
COPY . ./
|
COPY . ./
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,7 @@ TEMPLATES = [
|
||||||
'django.template.context_processors.debug',
|
'django.template.context_processors.debug',
|
||||||
'django.template.context_processors.request',
|
'django.template.context_processors.request',
|
||||||
'django.contrib.auth.context_processors.auth',
|
'django.contrib.auth.context_processors.auth',
|
||||||
# 'gym.context_processors.git_version',
|
'gym.context_processors.git_version',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue