Spaces:
Sleeping
Sleeping
| FROM ubuntu:22.04 | |
| RUN apt-get update | |
| apt-get install -y --no-install-recommends \ | |
| tar \ | |
| ca-certificates \ | |
| binutils \ | |
| libgnutls30 \ | |
| libssl-dev \ | |
| bash \ | |
| strace \ | |
| 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 | |
| echo '=== readelf -h sign ===' >> /app/40990sign/debug_info.txt | |
| echo '=== ldd sign ===' >> /app/40990sign/debug_info.txt | |
| echo '=== ldd libsymbols.so ===' >> /app/40990sign/debug_info.txt | |
| echo '=== start sign (RUST_BACKTRACE=1) ===' >> /app/40990sign/debug_info.txt | |
| RUST_BACKTRACE=1 LD_LIBRARY_PATH=/app/40990sign:$LD_LIBRARY_PATH ./sign 2> | |
| " | |