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,6 +1,6 @@
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