diff --git a/docker/Dockerfile b/docker/Dockerfile index f1a56ab..7e00036 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,6 +1,6 @@ FROM node:20.11.1-bullseye AS server-builder RUN apt update && apt install -y git git-lfs p7zip-full && \ - git clone -b 3.10.2 --depth=1 https://github.com/AirryCo/spt-server.git /snapshot && \ + git clone -b master --depth=1 https://github.com/AirryCo/spt-server.git /snapshot && \ cd /snapshot && git lfs pull && \ cd project && \ npm install && npm run build:release && \ diff --git a/docker/Dockerfile-fika b/docker/Dockerfile-fika index ca1e12d..08f73d7 100644 --- a/docker/Dockerfile-fika +++ b/docker/Dockerfile-fika @@ -7,7 +7,7 @@ RUN apk add --no-cache git unzip && \ FROM node:20.11.1-bullseye AS server-builder RUN apt update && apt install -y git git-lfs p7zip-full && \ - git clone -b 3.10.2 --depth=1 https://github.com/AirryCo/spt-server.git /snapshot && \ + git clone -b master --depth=1 https://github.com/AirryCo/spt-server.git /snapshot && \ cd /snapshot && git lfs pull && \ cd project && \ npm install && npm run build:release && \ diff --git a/docker/Dockerfile-manual b/docker/Dockerfile-manual new file mode 100644 index 0000000..e3a59b7 --- /dev/null +++ b/docker/Dockerfile-manual @@ -0,0 +1,25 @@ +FROM node:20.11.1-bullseye AS server-builder +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 && \ + rm -rf /var/lib/apt/lists/* + +FROM debian:bookworm-slim +LABEL author="AirryCo " +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 +WORKDIR /opt/spt-server +EXPOSE 6969 +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/entrypoint.sh"] + diff --git a/docker/Dockerfile-manual-fika b/docker/Dockerfile-manual-fika new file mode 100644 index 0000000..a12c557 --- /dev/null +++ b/docker/Dockerfile-manual-fika @@ -0,0 +1,33 @@ +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 && \ + cd /fika-server && \ + npm config set registry https://registry.npmmirror.com && npm install && npm run build && \ + mkdir output && cd output && unzip /fika-server/dist/fika-server.zip + +FROM node:20.11.1-bullseye AS server-builder +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 && \ + rm -rf /var/lib/apt/lists/* + +FROM debian:bookworm-slim +LABEL author="AirryCo " +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/ +VOLUME /opt/spt-server +WORKDIR /opt/spt-server +EXPOSE 6969 +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/entrypoint.sh"] +