forked from kuhn-ruess/cmdbsyncer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.local
More file actions
44 lines (36 loc) · 883 Bytes
/
Dockerfile.local
File metadata and controls
44 lines (36 loc) · 883 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
44
FROM python:3.12-alpine3.20
WORKDIR /srv
RUN apk add --no-cache python3 \
uwsgi \
ca-certificates \
gcc \
git \
g++ \
linux-headers \
libxml2-dev \
libxslt-dev \
python3-dev \
uwsgi-python3 \
jpeg-dev \
tzdata \
libffi-dev \
openssl-dev \
krb5-pkinit \
krb5-dev \
krb5 \
openldap-dev \
unixodbc-dev
ENV TZ=Europe/Berlin
RUN ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
RUN pip3 install --upgrade pip
RUN pip3 install wheel
COPY requirements.txt ./
COPY requirements-extras.txt ./
COPY requirements-ansible.txt ./
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
CMD [ "flask", "run", "--host", "0.0.0.0", "--port", "5003" ]
EXPOSE 5003