forked from resume-unilu/miller
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
53 lines (41 loc) · 1.02 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
FROM python:3.8-alpine
WORKDIR /miller
ARG GIT_TAG
ARG GIT_BRANCH
ARG GIT_REVISION
RUN pip install --upgrade pip
RUN apk add --no-cache git
RUN apk add --no-cache \
postgresql-libs
# RUN apk add imagemagick6-dev -U --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
RUN apk add --no-cache --virtual .build-deps \
gcc \
musl-dev \
postgresql-dev \
jpeg-dev \
zlib-dev \
freetype-dev \
lcms2-dev \
openjpeg-dev \
tiff-dev \
tk-dev \
tcl-dev \
harfbuzz-dev \
fribidi-dev \
libxslt-dev
RUN apk add libjpeg-turbo
RUN apk add imagemagick-dev imagemagick
RUN apk add yaml-dev
COPY miller ./miller
COPY manage.py .
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN python -m pip install python-dotenv
RUN apk del --no-cache .build-deps
RUN mkdir -p logs
ENV MILLER_GIT_TAG=${GIT_TAG}
ENV MILLER_GIT_BRANCH=${GIT_BRANCH}
ENV MILLER_GIT_REVISION=${GIT_REVISION}
ENV MAGICK_HOME=/usr
RUN magick -list format
ENTRYPOINT ["python", "./manage.py", "runserver"]