-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (27 loc) · 806 Bytes
/
Dockerfile
File metadata and controls
36 lines (27 loc) · 806 Bytes
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
FROM python:3.8.5-alpine
# Install dependencies
RUN apk add --no-cache mariadb-connector-c-dev
RUN apk update && apk add python3 python3-dev mariadb-dev build-base musl-dev gcc g++ tzdata && pip3 install mysqlclient && apk del python3-dev mariadb-dev
RUN apk add --no-cache freetype-dev \
fribidi-dev \
harfbuzz-dev \
jpeg-dev \
lcms2-dev \
openjpeg-dev \
tcl-dev \
tiff-dev \
tk-dev \
zlib-dev \
bash \
dcron
# Set timezone
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apk add netcat-openbsd git
RUN pip3 install django-mysql django-postgresql gunicorn gevent
# Copy code
COPY . /app
WORKDIR /app
RUN pip3 install -r requirements.txt
RUN /usr/bin/crontab /app/crontab
EXPOSE 80
CMD ["bash", "/app/docker/start.sh"]