Update Dockerfile to handle missing NSECBUNKER_KEY

Modified the Dockerfile CMD to conditionally pass the --key argument to the start script only if NSECBUNKER_KEY is set. This improves flexibility for environments where the key may not be provided.
This commit is contained in:
Steven Noack 2025-12-11 11:37:53 +01:00
parent 9b8aa74606
commit b2b79a748d
2 changed files with 1 additions and 1 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -22,4 +22,4 @@ RUN mkdir -p /app/config
EXPOSE 3000
CMD sh -c "node ./scripts/init-config.js && node ./scripts/start.js start --key $NSECBUNKER_KEY"
CMD sh -c "node ./scripts/init-config.js && if [ -n \"$NSECBUNKER_KEY\" ]; then node ./scripts/start.js start --key $NSECBUNKER_KEY; else node ./scripts/start.js start; fi"