docker: change builder from node:20.11.1-alpine to node:20.11.1-bullyseye.
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
FROM node:20.11.1-alpine AS server-builder
|
FROM node:20.11.1-bullseye AS server-builder
|
||||||
RUN apk add --no-cache git git-lfs && \
|
RUN apt update && apt install -y git git-lfs p7zip-full && \
|
||||||
git clone -b master --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 /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/*
|
||||||
|
|
||||||
FROM debian:bookworm-slim
|
FROM debian:bookworm-slim
|
||||||
LABEL author="AirryCo <henry@stblog.com.cn>"
|
LABEL author="AirryCo <henry@stblog.com.cn>"
|
||||||
|
|||||||
@@ -5,12 +5,13 @@ RUN apk add --no-cache git unzip && \
|
|||||||
npm install && npm run build && \
|
npm install && npm run build && \
|
||||||
mkdir output && cd output && unzip /fika-server/dist/fika-server.zip
|
mkdir output && cd output && unzip /fika-server/dist/fika-server.zip
|
||||||
|
|
||||||
FROM node:20.11.1-alpine AS server-builder
|
FROM node:20.11.1-bullseye AS server-builder
|
||||||
RUN apk add --no-cache git git-lfs && \
|
RUN apt update && apt install -y git git-lfs p7zip-full && \
|
||||||
git clone -b master --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 /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/*
|
||||||
|
|
||||||
FROM debian:bookworm-slim
|
FROM debian:bookworm-slim
|
||||||
LABEL author="AirryCo <henry@stblog.com.cn>"
|
LABEL author="AirryCo <henry@stblog.com.cn>"
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
FROM node:20.11.1-alpine AS server-builder
|
FROM node:20.11.1-bullseye AS server-builder
|
||||||
RUN apk add --no-cache git git-lfs && \
|
RUN apt update && apt install -y git git-lfs p7zip-full && \
|
||||||
git clone -b 3.10.0-DEV --depth=1 https://github.com/AirryCo/spt-server.git /snapshot && \
|
git clone -b 3.10.0-DEV --depth=1 https://github.com/AirryCo/spt-server.git /snapshot && \
|
||||||
cd /snapshot && 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/*
|
||||||
|
|
||||||
FROM debian:bookworm-slim
|
FROM debian:bookworm-slim
|
||||||
LABEL author="AirryCo <henry@stblog.com.cn>"
|
LABEL author="AirryCo <henry@stblog.com.cn>"
|
||||||
|
|||||||
@@ -5,12 +5,13 @@ RUN apk add --no-cache git unzip && \
|
|||||||
npm install && npm run build && \
|
npm install && npm run build && \
|
||||||
mkdir output && cd output && unzip /fika-server/dist/fika-server.zip
|
mkdir output && cd output && unzip /fika-server/dist/fika-server.zip
|
||||||
|
|
||||||
FROM node:20.11.1-alpine AS server-builder
|
FROM node:20.11.1-bullseye AS server-builder
|
||||||
RUN apk add --no-cache git git-lfs && \
|
RUN apt update && apt install -y git git-lfs p7zip-full && \
|
||||||
git clone -b 3.10.0-DEV --depth=1 https://github.com/AirryCo/spt-server.git /snapshot && \
|
git clone -b 3.10.0-DEV --depth=1 https://github.com/AirryCo/spt-server.git /snapshot && \
|
||||||
cd /snapshot && 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/*
|
||||||
|
|
||||||
FROM debian:bookworm-slim
|
FROM debian:bookworm-slim
|
||||||
LABEL author="AirryCo <henry@stblog.com.cn>"
|
LABEL author="AirryCo <henry@stblog.com.cn>"
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ fi
|
|||||||
|
|
||||||
sed -i "0,/127.0.0.1/s/127.0.0.1/${IP}/" SPT_Data/Server/configs/http.json
|
sed -i "0,/127.0.0.1/s/127.0.0.1/${IP}/" SPT_Data/Server/configs/http.json
|
||||||
sed -i "s/[0-9]\{1,\},/${PORT},/g" SPT_Data/Server/configs/http.json
|
sed -i "s/[0-9]\{1,\},/${PORT},/g" SPT_Data/Server/configs/http.json
|
||||||
tac SPT_Data/Server/configs/http.json | sed "0,/${PORT},/s/${PORT},/$webSocketPingDelayMs,/" | tac | tee SPT_Data/Server/configs/http.json > /dev/null
|
tac SPT_Data/Server/configs/http.json | sed "0,/${PORT},/s/${PORT},/$PINGDELAYMS,/" | tac | tee SPT_Data/Server/configs/http.json > /dev/null
|
||||||
|
|
||||||
chmod +x SPT.Server && ./SPT.Server
|
chmod +x SPT.Server && ./SPT.Server
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user