mirror of
https://github.com/nicolabs/musiccast-repairkit.git
synced 2025-09-07 16:10:34 +02:00
18 lines
559 B
Docker
18 lines
559 B
Docker
ARG BASEIMAGE=node:16-alpine3.11
|
|
|
|
# See https://github.com/nodejs/docker-node/blob/main/docs/BestPractices.md#node-gyp-alpine
|
|
FROM ${BASEIMAGE} as builder
|
|
## Install build toolchain, install node deps and compile native add-ons
|
|
RUN apk add --no-cache python make g++
|
|
WORKDIR /usr/src/app
|
|
COPY package.json ./
|
|
RUN npm install --production
|
|
|
|
FROM ${BASEIMAGE}
|
|
EXPOSE 41100/udp
|
|
ENTRYPOINT [ "node", "index.js" ]
|
|
WORKDIR /usr/src/app
|
|
COPY --from=builder /usr/src/app/node_modules ./node_modules/
|
|
COPY index.js logging.js package*.json ./
|
|
COPY scripts/* ./scripts/
|