-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathDockerfile
49 lines (37 loc) · 930 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM python:3.12-alpine3.20
WORKDIR /srv
RUN addgroup -S uwsgi && adduser -S uwsgi -G uwsgi
RUN apk add --no-cache python3 \
uwsgi \
ca-certificates \
gcc \
git \
g++ \
linux-headers \
libxml2-dev \
libxslt-dev \
python3-dev \
uwsgi-python3 \
tzdata \
libffi-dev \
openssl-dev \
krb5-pkinit \
krb5-dev \
krb5 \
openldap-dev \
unixodbc-dev
ENV TZ=Etc/Universal
RUN ln -sf /usr/share/zoneinfo/Ect/Universal /etc/localtime
COPY requirements.txt ./
COPY requirements-extras.txt ./
COPY requirements-ansible.txt ./
RUN pip3 install --upgrade pip
RUN pip3 install --no-cache-dir -r requirements.txt
RUN pip3 install --no-cache-dir -r requirements-extras.txt
RUN pip3 install --no-cache-dir -r requirements-ansible.txt
ARG config
ENV config=$config
COPY . /srv/
USER uwsgi
CMD [ "uwsgi", "--master", "/srv/deploy_configs/uwsgi_docker.ini" ]
EXPOSE 9090