-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
59 lines (54 loc) · 1.2 KB
/
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
50
51
52
53
54
55
56
57
58
59
# FROM ghcr.io/linuxserver/baseimage-alpine:3.20
FROM python:3.11.9-alpine3.20
ENV DATA_DIR=/config DEBUG=False
COPY ./manage.py /app/manage.py
COPY ./VERSION /app/VERSION
COPY ./LICENSE /app/LICENSE
COPY ./conreq/ /app/conreq/
COPY ./requirements/ /app/conreq/requirements/
RUN \
echo "**** Install build dependencies ****" \
&& \
apk add --no-cache --virtual=build-dependencies \
bsd-compat-headers \
build-base \
cargo \
curl \
g++ \
gcc \
git \
jq \
libev-dev \
libffi-dev \
openssl-dev \
&& \
echo "**** Install Linux packages ****" \
&& \
apk add --no-cache \
freetype-dev \
fribidi-dev \
harfbuzz-dev \
jpeg-dev \
lcms2-dev \
openjpeg-dev \
tcl-dev \
tiff-dev \
tk-dev \
zlib-dev \
&& \
echo "**** Install Python dependencies ****" \
&& \
pip3 install --no-cache-dir -U -r /app/conreq/requirements/main.txt \
&& \
echo "**** Cleanup ****" \
&& \
apk del --purge \
build-dependencies \
&& \
rm -rf \
/root/.cache \
/root/.cargo \
/tmp/*
EXPOSE 7575
WORKDIR /app/
CMD ["sh", "-c", "python3 manage.py run_conreq --uid ${PUID:=99} --gid ${PGID:=100}"]