-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy patharm64.Dockerfile
37 lines (30 loc) · 993 Bytes
/
arm64.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
FROM python:3.11-slim
ARG READER_VERSION
WORKDIR /reader
COPY --chmod=755 . .
RUN apt update -y && \
DEBIAN_FRONTEND=noninteractive apt install -y \
nginx \
git \
tzdata \
bash \
wget \
procps && \
pip install --upgrade pip && \
wget https://github.com/adoptium/temurin19-binaries/releases/download/jdk-19.0.2%2B7/OpenJDK19U-jre_aarch64_linux_hotspot_19.0.2_7.tar.gz -O jre.tar.gz && \
tar -zxvf jre.tar.gz && \
pip install -r requirements.txt && \
if [ "${READER_VERSION}" = "2.7.4" ]; \
then rm -rf reader-pro.jar && wget https://reader-download.fucktx.eu.org/reader-pro-2.7.4.jar -O reader-pro.jar; fi && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf \
/reader/jre.tar.gz \
/tmp/* \
/root/.cache \
/var/lib/apt/lists/* \
/var/tmp/* \
/etc/nginx/*
COPY --chmod=755 ./nginx/conf /etc/nginx/
ENTRYPOINT [ "/reader/start.sh" ]
EXPOSE 80 1000 5000 8080