Files
spt-server-ci/docker/Dockerfile-manual
AirryCo 8ed5d8b03d 3.11.2
2025-04-03 14:18:29 +08:00

20 lines
647 B
Plaintext

FROM node:22.12.0-bullseye AS server-builder
RUN apt update && apt install -y git git-lfs p7zip-full && \
git clone -b 3.11.2 --depth=1 https://github.com/AirryCo/spt-server.git /snapshot && \
cd /snapshot && git lfs pull && \
cd project && \
npm install && npm run build:release && \
rm -rf /var/lib/apt/lists/*
FROM debian:bookworm-slim
LABEL author="AirryCo <henry@stblog.com.cn>"
ENV TZ=Asia/Shanghai
COPY --from=server-builder /snapshot/project/build/ /app/spt-server/
VOLUME /opt/spt-server
WORKDIR /opt/spt-server
EXPOSE 6969
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]