2020-02-13 20:06:27 +08:00
|
|
|
FROM node:lts-alpine
|
|
|
|
|
2020-08-20 02:41:28 +08:00
|
|
|
RUN apk add --no-cache make git dumb-init python openssl
|
2020-02-13 20:06:27 +08:00
|
|
|
|
|
|
|
WORKDIR /wildduck
|
|
|
|
|
2021-09-12 23:03:56 +08:00
|
|
|
COPY package*.json ./
|
2020-02-13 20:06:27 +08:00
|
|
|
RUN npm install --production
|
|
|
|
|
2021-09-12 23:03:56 +08:00
|
|
|
COPY . .
|
|
|
|
|
|
|
|
|
2020-02-13 20:06:27 +08:00
|
|
|
ENV WILDDUCK_APPDIR=/wildduck \
|
2020-02-29 15:11:44 +08:00
|
|
|
WILDDUCK_CONFIG=/wildduck/config/default.toml \
|
|
|
|
CMD_ARGS=""
|
2020-02-13 20:06:27 +08:00
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
2020-02-29 15:11:44 +08:00
|
|
|
CMD node ${WILDDUCK_APPDIR}/server.js --config=${WILDDUCK_CONFIG} ${CMD_ARGS}
|