fix: 修復 ARM64 上 endesive 編譯問題
- 添加 python3-dev, gcc, libffi-dev 編譯依賴 - 編譯完成後自動移除以減小體積
This commit is contained in:
parent
1b8cae30a0
commit
73f2bfd890
1 changed files with 135 additions and 131 deletions
|
|
@ -251,6 +251,9 @@ RUN echo "" && \
|
||||||
apt-get update --fix-missing && apt-get install -y --no-install-recommends \
|
apt-get update --fix-missing && apt-get install -y --no-install-recommends \
|
||||||
python3 \
|
python3 \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
|
python3-dev \
|
||||||
|
gcc \
|
||||||
|
libffi-dev \
|
||||||
&& rm -rf /var/lib/apt/lists/* && \
|
&& rm -rf /var/lib/apt/lists/* && \
|
||||||
pip3 install --no-cache-dir --break-system-packages endesive && \
|
pip3 install --no-cache-dir --break-system-packages endesive && \
|
||||||
mkdir -p /app/certs && \
|
mkdir -p /app/certs && \
|
||||||
|
|
@ -264,6 +267,7 @@ RUN echo "" && \
|
||||||
-passout pass: && \
|
-passout pass: && \
|
||||||
rm -f /tmp/key.pem /tmp/cert.pem && \
|
rm -f /tmp/key.pem /tmp/cert.pem && \
|
||||||
chmod 644 /app/certs/default.p12 && \
|
chmod 644 /app/certs/default.p12 && \
|
||||||
|
apt-get purge -y --auto-remove gcc python3-dev libffi-dev && \
|
||||||
echo "✅ Python + PDF 簽章已安裝"
|
echo "✅ Python + PDF 簽章已安裝"
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue