Files
spt-server-ci/docker/Dockerfile-nightly-fika
2024-11-28 18:25:30 +08:00

27 lines
972 B
Plaintext

FROM node:20.11.1-alpine AS fika-builder
RUN apk add --no-cache git unzip && \
git clone -b spt-3.10 --depth=1 https://github.com/project-fika/Fika-Server.git /fika-server && \
cd /fika-server && \
npm install && npm run build && \
mkdir output && cd output && unzip /fika-server/dist/fika-server.zip
FROM node:20.11.1-alpine AS server-builder
RUN apk add --no-cache git git-lfs && \
git clone -b 3.10.0-DEV --depth=1 https://github.com/AirryCo/spt-server.git /snapshot && \
cd /snapshot && git lfs pull && \
cd project && \
npm install && npm run build:release
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/
COPY --from=fika-builder /fika-server/output/ /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"]