From dc401de1e950baf320913ba5180a2192034390ea Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Thu, 28 Aug 2025 05:50:06 -0700 Subject: [PATCH] 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> --- Dockerfile | 3 +-- docker-entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 45f00f80..d4d7b1a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,7 @@ RUN apk add --no-cache bash jq COPY . /app WORKDIR /app -RUN npm i --omit=dev -RUN npm run build +RUN npm i --omit=dev --omit=optional RUN date '+%d %B %Y' > BUILD_DATE ENTRYPOINT ["/app/docker-entrypoint.sh"] diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 27abf98d..e67508c2 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -5,4 +5,4 @@ if [ ! -f conf/config.json ]; then jq --arg value "mongodb://openwfagent:spaceninjaserver@mongodb:27017/" '.mongodbUrl = $value' /app/config-vanilla.json > /app/conf/config.json fi -exec npm run start -- --configPath conf/config.json +exec npm run raw -- --configPath conf/config.json