2023-03-30 19:45:42 +08:00
|
|
|
FROM --platform=${BUILDPLATFORM} node:lts-alpine
|
2023-03-30 19:21:10 +08:00
|
|
|
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
|
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
|
|
|
|
|
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
|
|
|
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
2024-10-28 14:56:52 +08:00
|
|
|
CMD ["node", "/wildduck/server.js", "--config=/wildduck/config/default.toml"]
|