SignServer / Dockerfile
ChloeLilyMu's picture
Update Dockerfile
91b226f verified
raw
history blame
1.47 kB
FROM ubuntu:22.04
RUN apt-get update && \
apt-get install -y --no-install-recommends \
tar \
ca-certificates \
binutils \
libgnutls30 \
libssl-dev \
bash \
strace \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY 40990sign.tar.gz /app/40990sign.tar.gz
ENV LD_LIBRARY_PATH=/app/40990sign:$LD_LIBRARY_PATH
ENV PORT=7860
ENV RUST_BACKTRACE=1
EXPOSE 7860
CMD bash -lc "\
echo 'Extracting...' && \
tar -xvf /app/40990sign.tar.gz -C /app && \
if [ ! -d /app/40990sign ]; then echo 'ERROR: expected /app/40990sign but not found'; ls -la /app; exit 1; fi && \
chmod +x /app/40990sign/sign || true && chmod +r /app/40990sign/*.so || true && \
cd /app/40990sign && \
echo '=== file sign ===' > /app/40990sign/debug_info.txt && file ./sign >> /app/40990sign/debug_info.txt 2>&1 && \
echo '=== readelf -h sign ===' >> /app/40990sign/debug_info.txt && readelf -h ./sign >> /app/40990sign/debug_info.txt 2>&1 || true && \
echo '=== ldd sign ===' >> /app/40990sign/debug_info.txt && ldd ./sign >> /app/40990sign/debug_info.txt 2>&1 || true && \
echo '=== ldd libsymbols.so ===' >> /app/40990sign/debug_info.txt && ldd ./libsymbols.so >> /app/40990sign/debug_info.txt 2>&1 || true && \
echo '=== start sign (RUST_BACKTRACE=1) ===' >> /app/40990sign/debug_info.txt && \
RUST_BACKTRACE=1 LD_LIBRARY_PATH=/app/40990sign:$LD_LIBRARY_PATH ./sign 2>&1 | tee -a /app/40990sign/debug_info.txt \
"