update workflow build-release-manual.

This commit is contained in:
AirryCo
2025-01-14 00:22:42 +08:00
parent 5425a45394
commit 4f7d0fbd95
3 changed files with 15 additions and 28 deletions

View File

@@ -3,17 +3,11 @@ RUN apt update && apt install -y git git-lfs p7zip-full && \
git clone -b 3.10.5 --depth=1 https://github.com/AirryCo/spt-server.git /snapshot && \
cd /snapshot && git lfs pull && \
cd project && \
npm config set registry https://registry.npmmirror.com && npm install && npm run build:release && \
npm install && npm run build:release && \
rm -rf /var/lib/apt/lists/*
FROM debian:bookworm-slim
LABEL author="AirryCo <henry@stblog.com.cn>"
LABEL org.opencontainers.image.description="Single Player Tarkov(SPT) - Server Building Project"
LABEL org.opencontainers.image.revision="f06b54f1776c1c3e3c257120a3a60c478feda2e1"
LABEL org.opencontainers.image.source="https://github.com/AirryCo/spt-server"
LABEL org.opencontainers.image.title="spt-server"
LABEL org.opencontainers.image.url="https://github.com/AirryCo/spt-server"
LABEL org.opencontainers.image.version="3.10.5"
ENV TZ=Asia/Shanghai
COPY --from=server-builder /snapshot/project/build/ /app/spt-server/
VOLUME /opt/spt-server

View File

@@ -1,8 +1,8 @@
FROM node:20.11.1-alpine AS fika-builder
RUN apk add --no-cache git unzip && \
git clone -b main --depth=1 https://github.com/project-fika/Fika-Server.git /fika-server && \
git clone -b 2.3.6 --depth=1 https://github.com/project-fika/Fika-Server.git /fika-server && \
cd /fika-server && \
npm config set registry https://registry.npmmirror.com && npm install && npm run build && \
npm install && npm run build && \
mkdir output && cd output && unzip /fika-server/dist/*.zip
FROM node:20.11.1-bullseye AS server-builder
@@ -10,17 +10,11 @@ RUN apt update && apt install -y git git-lfs p7zip-full && \
git clone -b 3.10.5 --depth=1 https://github.com/AirryCo/spt-server.git /snapshot && \
cd /snapshot && git lfs pull && \
cd project && \
npm config set registry https://registry.npmmirror.com && npm install && npm run build:release && \
npm install && npm run build:release && \
rm -rf /var/lib/apt/lists/*
FROM debian:bookworm-slim
LABEL author="AirryCo <henry@stblog.com.cn>"
LABEL org.opencontainers.image.description="Single Player Tarkov(SPT) - Server Building Project"
LABEL org.opencontainers.image.revision="f06b54f1776c1c3e3c257120a3a60c478feda2e1"
LABEL org.opencontainers.image.source="https://github.com/AirryCo/spt-server"
LABEL org.opencontainers.image.title="spt-server"
LABEL org.opencontainers.image.url="https://github.com/AirryCo/spt-server"
LABEL org.opencontainers.image.version="3.10.5"
ENV TZ=Asia/Shanghai
COPY --from=server-builder /snapshot/project/build/ /app/spt-server/
COPY --from=fika-builder /fika-server/output/ /app/spt-server/