Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
psy0rz committed Jan 15, 2025
1 parent 6f3e995 commit ece7cd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ ENV NODE_ENV=production
WORKDIR /app
COPY --from=builder /app /app

CMD [ "node","ledder/server/server.js" ]
ENTRYPOINT [ "node","ledder/server/server.js" ]


### final stage armv7 (for raspberry)
FROM --platform=linux/arm/v7 node:22 AS ledder-armv7
### builder forarmv7 (for raspberry). resuses most of amd64 builder for performance (qemu issues)
FROM --platform=linux/arm/v7 node:22 AS ledder-armv7-builder
ENV NODE_ENV=production

RUN apt update && apt install -y build-essential cmake
Expand All @@ -39,14 +39,13 @@ COPY entrypoint.sh /
WORKDIR /app
COPY --from=builder /app /app


#rebuilds stuff for arm if needed
RUN npm rebuild --verbose

# compile and add rpi led ws8212 driver
RUN npm install 'github:psy0rz/rpi-ws281x-smi#v0.1'


CMD [ "/entrypoint.sh" ]
ENTRYPOINT [ "/entrypoint.sh" ]


Empty file modified entrypoint.sh
100644 → 100755
Empty file.

0 comments on commit ece7cd4

Please sign in to comment.