mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-12-27 02:10:52 +08:00
17 lines
373 B
Docker
17 lines
373 B
Docker
FROM node:lts-alpine
|
|
|
|
RUN apk --no-cache add make git dumb-init openssl
|
|
|
|
WORKDIR /wildduck
|
|
|
|
COPY package*.json ./
|
|
RUN npm install --production
|
|
|
|
COPY . .
|
|
|
|
ENV WILDDUCK_APPDIR=/wildduck \
|
|
WILDDUCK_CONFIG=/wildduck/config/default.toml \
|
|
CMD_ARGS=""
|
|
|
|
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
|
CMD node ${WILDDUCK_APPDIR}/server.js --config=${WILDDUCK_CONFIG} ${CMD_ARGS}
|