wildduck/Dockerfile

18 lines
400 B
Text
Raw Normal View History

2023-03-30 19:01:11 +08:00
FROM --platform=$TARGETPLATFORM node:lts-alpine
2020-02-13 20:06:27 +08:00
2021-11-16 19:30:41 +08:00
RUN apk --no-cache add make git dumb-init openssl
2020-02-13 20:06:27 +08:00
WORKDIR /wildduck
COPY package*.json ./
2020-02-13 20:06:27 +08:00
RUN npm install --production
COPY . .
2020-02-13 20:06:27 +08:00
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}