Skip to content

Instantly share code, notes, and snippets.

@emka
Last active November 14, 2021 21:14
Show Gist options
  • Save emka/07e91fabbf931f930ecd42992f1d15e2 to your computer and use it in GitHub Desktop.
Save emka/07e91fabbf931f930ecd42992f1d15e2 to your computer and use it in GitHub Desktop.
CNCjs Docker image for Raspberry Pi

Build cross-platform using buildx for ARMv7 (Model 2-4, but not Zero).

docker buildx build --platform linux/arm/v7 -t emka/cncjs-coms:armv7 .
docker push emka/cncjs-coms:armv7
FROM --platform=linux/arm/v7 debian:stable-slim
RUN apt-get update && \
apt-get install -y nodejs npm git
RUN git clone https://github.com/comakingspace/cncjs
WORKDIR cncjs
RUN npm install --build-from-source --legacy-peer-deps
CMD bin/cnc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment