docker: remove git config command

This commit is contained in:
AirryCo
2025-01-11 23:14:58 +08:00
parent 9fa9dbc9be
commit def89f1ab5
2 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
FROM node:20.11.1-bullseye AS server-builder FROM node:20.11.1-bullseye AS server-builder
RUN apt update && apt install -y git git-lfs p7zip-full && \ RUN apt update && apt install -y git git-lfs p7zip-full && \
GIT_LFS_SKIP_SMUDGE=1 git clone -b 4.0.x-DEV --depth=1 https://github.com/AirryCo/spt-server.git /snapshot && \ git clone -b 4.0.x-DEV --depth=1 https://github.com/AirryCo/spt-server.git /snapshot && \
cd /snapshot && git config -f .lfsconfig lfs.url https://git.rui.he.cn:3000/henry/spt-server.git/info/lfs && git lfs pull && \ cd /snapshot && git lfs pull && \
cd project && \ cd project && \
npm install && npm run build:release && \ npm install && npm run build:release && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*

View File

@@ -7,8 +7,8 @@ RUN apk add --no-cache git unzip && \
FROM node:22.12.0-bullseye AS server-builder FROM node:22.12.0-bullseye AS server-builder
RUN apt update && apt install -y git git-lfs p7zip-full && \ RUN apt update && apt install -y git git-lfs p7zip-full && \
GIT_LFS_SKIP_SMUDGE=1 git clone -b 4.0.x-DEV --depth=1 https://github.com/AirryCo/spt-server.git /snapshot && \ git clone -b 4.0.x-DEV --depth=1 https://github.com/AirryCo/spt-server.git /snapshot && \
cd /snapshot && git config -f .lfsconfig lfs.url https://git.rui.he.cn:3000/henry/spt-server.git/info/lfs && git lfs pull && \ cd /snapshot && git lfs pull && \
cd project && \ cd project && \
npm install && npm run build:release && \ npm install && npm run build:release && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*