-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (33 loc) · 880 Bytes
/
Dockerfile
File metadata and controls
44 lines (33 loc) · 880 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
37
38
39
40
41
42
FROM python:3.10-alpine3.23
# Install dependencies
RUN apk update && apk upgrade --scripts=no apk-tools
RUN apk add python3 python3-dev build-base musl-dev gcc g++ tzdata cargo rust libffi-dev musl-dev
RUN apk add --no-cache freetype-dev \
fribidi-dev \
harfbuzz-dev \
libgcc \
cargo \
jpeg-dev \
lcms2-dev \
openjpeg-dev \
rustup \
tcl-dev \
tiff-dev \
tk-dev \
zlib-dev \
bash \
pngquant \
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 --upgrade pip
RUN pip3 install django-mysql django-postgresql gunicorn daphne gevent psycopg2-binary
# Copy code
COPY . /app
WORKDIR /app
RUN pip3 install -r requirements.txt
RUN /usr/bin/crontab /app/crontab
EXPOSE 80
EXPOSE 55230
CMD ["bash", "/app/docker/start.sh"]