mirror of
https://github.com/kind-0/nsecbunkerd.git
synced 2026-05-03 07:00:11 +00:00
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:
parent
9b8aa74606
commit
b2b79a748d
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user