ha-matter-bridge/matter-bridge/Dockerfile

23 lines
556 B
Docker
Raw Normal View History

2024-01-26 23:19:14 +01:00
ARG BUILD_FROM=ghcr.io/hassio-addons/base:15.0.3
FROM node:18.19.0-alpine as node
FROM ${BUILD_FROM} as runenv
2024-01-26 23:19:14 +01:00
COPY --from=node /usr/lib /usr/lib
COPY --from=node /usr/local/lib /usr/local/lib
COPY --from=node /usr/local/include /usr/local/include
COPY --from=node /usr/local/bin /usr/local/bin
2024-01-26 23:19:14 +01:00
COPY ./package.json ./
COPY ./package-lock.json ./
COPY ./src ./src
COPY ./tsconfig.json ./
RUN HUSKY=0 && npm install
RUN npm run build
RUN rm -rf ./node_modules
RUN HUSKY=0 && npm install --production
2024-01-26 23:19:14 +01:00
COPY run.sh /
RUN chmod a+x /run.sh
CMD [ "/run.sh" ]