返回提交历史
Modified
Dockerfile
+1
-2
Modified
docker-entrypoint.sh
+1
-1
XFEstudio/SpaceNinjaServer
chore: use raw running in docker image (#2711)
We can rely on having up-to-date Node.js here, and reducing the size by like ~55 MiB seems decent. Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2711 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
dc401de1
代码差异
2 个文件
+2
-3
@@ -5,8 +5,7 @@ RUN apk add --no-cache bash jq
5
5
COPY . /app
6
6
WORKDIR /app
7
7
8
RUN npm i --omit=dev
9
RUN npm run build
8
RUN npm i --omit=dev --omit=optional
10
9
RUN date '+%d %B %Y' > BUILD_DATE
11
10
12
11
ENTRYPOINT ["/app/docker-entrypoint.sh"]
@@ -5,4 +5,4 @@ if [ ! -f conf/config.json ]; then
5
5
jq --arg value "mongodb://openwfagent:spaceninjaserver@mongodb:27017/" '.mongodbUrl = $value' /app/config-vanilla.json > /app/conf/config.json
6
6
fi
7
7
8
exec npm run start -- --configPath conf/config.json
8
exec npm run raw -- --configPath conf/config.json