-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (25 loc) · 868 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM python:3.7-alpine3.10
ENV PYTHONUNBUFFERED 1
WORKDIR /app
RUN apk update \
# psycopg2 dependencies
&& apk add --virtual build-deps gcc python3-dev musl-dev \
&& apk add postgresql-dev \
# Pillow dependencies
&& apk add jpeg-dev zlib-dev freetype-dev lcms2-dev openjpeg-dev tiff-dev tk-dev tcl-dev \
# CFFI dependencies
&& apk add libffi-dev py-cffi \
# Translations dependencies
&& apk add gettext \
&& apk add curl openssh bash \
# https://docs.djangoproject.com/en/dev/ref/django-admin/#dbshell
&& apk add postgresql-client \
&& apk add git \
&& pip install pipenv==2018.11.26
COPY Pipfile Pipfile.lock .pre-commit-config.yaml ./
RUN pipenv install --system --deploy --dev \
&& git init . \
&& pre-commit install-hooks
RUN pipenv install --system --deploy --dev
ADD . ./
RUN rm /bin/sh && ln -s /bin/bash /bin/sh