add --depth=1 to git clone.

This commit is contained in:
AirryCo
2024-11-28 18:12:22 +08:00
parent 695eabb71c
commit ebbd53106f
8 changed files with 17 additions and 22 deletions

View File

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