Spaces:
Sleeping
Sleeping
File size: 722 Bytes
4f8022f 0bd5987 91b226f 0ad108e 91b226f 0ad108e 0bd5987 0ad108e 0bd5987 0ad108e 91b226f 4f8022f 608d27f 84dbd48 608d27f 4f8022f 0ad108e 4f8022f 0ad108e 91b226f 2c333d1 0ad108e 0c3f673 0ad108e |
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 |
FROM ubuntu:22.04
# 安装运行所需库
RUN apt-get update && \
apt-get install -y --no-install-recommends \
tar \
ca-certificates \
bash \
libgnutls30 \
libssl-dev \
libx11-6 \
libx11-xcb1 \
libxext6 \
libxrender1 \
libxi6 \
libxtst6 \
libglib2.0-0 \
&& 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
EXPOSE 7860
ENV RUST_BACKTRACE=1
# 解压并启动 sign
CMD bash -lc "\
tar -xvf /app/40990sign.tar.gz -C /app && \
chmod +x /app/40990sign/sign && chmod +r /app/40990sign/*.so && \
cd /app/40990sign && \
./sign"
|