Skip to content

Commit

Permalink
Merge pull request #139 from Luligu/dev
Browse files Browse the repository at this point in the history
Docker
  • Loading branch information
Luligu authored Sep 21, 2024
2 parents 657e8ad + 886b798 commit 91615b2
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions docker/Dockerfile.latest
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,15 @@ COPY ./package-lock.json ./
COPY ./tsconfig.json ./
COPY ./src ./src
COPY ./frontend/build ./frontend/build
RUN npm ci && npm run build && npm link
RUN npm ci && npm run build && npm shrinkwrap --omit=dev && npm pack


FROM builder AS release
FROM node:22-bookworm-slim AS release
WORKDIR /app
COPY --from=builder /app/package.json ./
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/frontend/build ./frontend/build
RUN npm link

# Install Matterbridge plugins
COPY --from=builder /app/*.tgz .
RUN npm install -g npm@latest && \
npm install -g *.tgz && \
rm *.tgz && \
npm install -g matterbridge-zigbee2mqtt && \
npm install -g matterbridge-somfy-tahoma && \
npm install -g matterbridge-shelly && \
Expand Down

0 comments on commit 91615b2

Please sign in to comment.