musiccast-repairkit/Dockerfile
nicobo 0945b69410
+ ability to load external scripts
+ using yamaha-yxc-nodejs for easier addition of new scripts
+ can now sync the volume of several devices
2021-03-26 21:31:32 +01:00

16 lines
504 B
Docker

# See https://github.com/nodejs/docker-node/blob/main/docs/BestPractices.md#node-gyp-alpine
FROM node:alpine 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 node:alpine
EXPOSE 41100/udp
CMD [ "node", "index.js" ]
WORKDIR /usr/src/app
COPY --from=builder /usr/src/app/node_modules ./node_modules/
COPY index.js package.json ./
COPY scripts/* ./scripts/