fix: dockerfile

This commit is contained in:
手瓜一十雪 2024-05-24 12:27:02 +08:00 committed by GitHub
parent 0474031d93
commit 20944c4f95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,7 @@
FROM mlikiowa/napcat-docker:base ROM ubuntu:22.04
WORKDIR /usr/src/app # 设置环境变量
ENV DEBIAN_FRONTEND=noninteractive
COPY SignerServer-ubuntu-latest-x64.zip . COPY SignerServer-ubuntu-latest-x64.zip .
@ -12,13 +13,31 @@ RUN arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) && \
# 安装 SignerServer # 安装 SignerServer
RUN arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/x64/) && \ RUN arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/x64/) && \
unzip SignerServer-ubuntu-latest-${arch}.zip && \ unzip SignerServer-ubuntu-latest-${arch}.zip && \
chrom +x start.sh chrom +x start.sh && \
apt-get update && apt-get install -y \
# 配置 supervisord libnss3 \
RUN echo "[supervisord]" > /etc/supervisord.conf && \ libnotify4 \
echo "nodaemon=true" >> /etc/supervisord.conf && \ libsecret-1-0 \
echo "[program:napcat]" >> /etc/supervisord.conf && \ libgbm1 \
echo "command=COMMAND" >> /etc/supervisord.conf libasound2 \
fonts-wqy-zenhei \
gnutls-bin \
libglib2.0-dev \
libdbus-1-3 \
libgtk-3-0 \
libxss1 \
libxtst6 \
libatspi2.0-0 \
libx11-xcb1 \
ffmpeg \
unzip \
curl && \
apt autoremove -y && \
apt clean && \
rm -rf \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/*
ENTRYPOINT ["sh", "start.sh"] ENTRYPOINT ["sh", "start.sh"]