-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (37 loc) · 938 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 alpine:3.18 AS builder
RUN apk add g++ \
pugixml-dev \
openssl-dev \
curl-dev \
libzip-dev \
make \
bash \
git
COPY ./libgourou /usr/src/libgourou
RUN cd /usr/src/libgourou \
&& make BUILD_STATIC=1
FROM alpine:3.18
ENV PYTHONPATH=/usr/local/lib/python3.11
RUN apk add --no-cache \
libcurl \
libzip \
libmagic \
pugixml \
bash \
python3 \
py3-pip
RUN pip3 install click \
xdg \
python-magic \
audible
COPY --from=builder /usr/src/libgourou/utils/acsmdownloader \
/usr/src/libgourou/utils/adept_activate \
/usr/src/libgourou/utils/adept_remove \
/usr/local/bin/
COPY ./knock/bin/knock.py /usr/local/bin
RUN mkdir -p /usr/local/lib/python3.11/
COPY ./knock/lib/* /usr/local/lib/python3.11/
COPY ./rmdrm/* /usr/local/bin
RUN chmod +x /usr/local/bin/*
WORKDIR /home/knock
ENTRYPOINT ["knock.py"]