SignServer / Dockerfile
ChloeLilyMu's picture
Update Dockerfile
0bd5987 verified
raw
history blame contribute delete
722 Bytes
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"