Add cmd_args env variable to pass cmd options to wildduck

This commit is contained in:
thebongy 2020-02-29 12:41:44 +05:30
parent 71f515240a
commit ab82f7377d

View file

@ -8,7 +8,8 @@ COPY . .
RUN npm install --production
ENV WILDDUCK_APPDIR=/wildduck \
WILDDUCK_CONFIG=/wildduck/config/default.toml
WILDDUCK_CONFIG=/wildduck/config/default.toml \
CMD_ARGS=""
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD node ${WILDDUCK_APPDIR}/server.js --config=${WILDDUCK_CONFIG}
CMD node ${WILDDUCK_APPDIR}/server.js --config=${WILDDUCK_CONFIG} ${CMD_ARGS}