mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-12-26 09:50:47 +08:00
25 lines
710 B
Docker
25 lines
710 B
Docker
FROM --platform=${BUILDPLATFORM} node:lts-alpine
|
|
ARG TARGETPLATFORM
|
|
ARG TARGETARCH
|
|
ARG TARGETVARIANT
|
|
RUN printf "I'm building for TARGETPLATFORM=${TARGETPLATFORM}" \
|
|
&& printf ", TARGETARCH=${TARGETARCH}" \
|
|
&& printf ", TARGETVARIANT=${TARGETVARIANT} \n" \
|
|
&& printf "With uname -s : " && uname -s \
|
|
&& printf "and uname -m : " && uname -mm
|
|
|
|
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}
|