wildduck/Dockerfile

16 lines
349 B
Text
Raw Permalink Normal View History

2020-02-13 20:06:27 +08:00
FROM node:lts-alpine
RUN apk add --no-cache make git dumb-init python
WORKDIR /wildduck
COPY . .
RUN npm install --production
ENV WILDDUCK_APPDIR=/wildduck \
WILDDUCK_CONFIG=/wildduck/config/default.toml \
CMD_ARGS=""
2020-02-13 20:06:27 +08:00
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD node ${WILDDUCK_APPDIR}/server.js --config=${WILDDUCK_CONFIG} ${CMD_ARGS}