-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathstaging.Dockerfile
More file actions
43 lines (29 loc) · 888 Bytes
/
staging.Dockerfile
File metadata and controls
43 lines (29 loc) · 888 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
43
# FROM python:3.10.0-alpine
FROM python:3.12.12-alpine
WORKDIR /app
# RUN apk update && apk add --no-cache gcc musl-dev mysql-dev git shadow
RUN apk update && apk add --no-cache \
gcc \
musl-dev \
mysql-dev \
git \
shadow \
cairo-dev \
cairo \
pango-dev \
gdk-pixbuf-dev \
libffi-dev \
jpeg-dev \
zlib-dev \
freetype-dev \
curl
RUN groupadd -r cystack && useradd -r -g cystack -s /usr/sbin/nologin -c "CyStack user" cystack
RUN pip install --upgrade pip
COPY requirements.txt ./
RUN pip install -r requirements.txt
EXPOSE 8000
COPY ./src/ /app
USER cystack
ENV PROD_ENV staging
CMD python manage.py migrate; gunicorn -w 3 -t 120 -b 0.0.0.0:8000 server_config.wsgi:application & daphne -b 0.0.0.0 -p 8001 server_config.asgi:application || true & python cron_task.py || true
# & python manage.py rqworker default || true