-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (41 loc) · 1.36 KB
/
Dockerfile
File metadata and controls
48 lines (41 loc) · 1.36 KB
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
FROM ubuntu:26.04
WORKDIR /app
RUN set -eux; \
apt-get update; \
apt-get install -y \
ca-certificates \
curl \
ffmpeg \
fontconfig \
ghostscript \
imagemagick \
libarchive13t64 \
libargon2-1 \
libavif16 \
libbrotli1 \
libheif1 \
libssl3t64 \
librocksdb9.11 \
libvips42t64 \
tzdata \
unzip; \
mkdir -p /usr/local/share/fonts/harmonyos; \
curl -fsSL "https://developer.huawei.com/images/download/general/HarmonyOS-Sans.zip" -o /tmp/HarmonyOS-Sans.zip; \
unzip -j /tmp/HarmonyOS-Sans.zip \
"HarmonyOS Sans/HarmonyOS_Sans/HarmonyOS_Sans_Regular.ttf" \
"HarmonyOS Sans/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Regular.ttf" \
-d /usr/local/share/fonts/harmonyos; \
rm -f /tmp/HarmonyOS-Sans.zip; \
fc-cache -f; \
ssl3="$(dpkg -S 'libssl.so.3' | head -n1 | sed 's/.*: //')"; \
crypto3="$(dpkg -S 'libcrypto.so.3' | head -n1 | sed 's/.*: //')"; \
ln -sf "${ssl3}" "$(dirname "${ssl3}")/libssl.so"; \
ln -sf "${crypto3}" "$(dirname "${crypto3}")/libcrypto.so"; \
rm -rf /var/lib/apt/lists/*
ENV LD_LIBRARY_PATH=/app:/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
ENV PATH="/app/bin:${PATH}"
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
COPY ./app .
RUN chmod +x /app/main
CMD ["/app/main"]