Created
September 22, 2022 18:15
-
-
Save seekwhencer/46eb8e01998a0e5bc74704603d278c9d to your computer and use it in GitHub Desktop.
node.js 16 with shared libs and rtl_433 in one Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:16-alpine | |
RUN apk add --no-cache build-base libtool libusb-dev librtlsdr-dev rtl-sdr cmake git | |
WORKDIR /home/node | |
RUN git clone https://github.com/merbanan/rtl_433.git | |
WORKDIR /home/node/rtl_433 | |
RUN mkdir build | |
WORKDIR /home/node/rtl_433/build | |
RUN cmake ../ | |
RUN make | |
RUN make install | |
WORKDIR /home/node/project/app | |
COPY app/package.json . | |
RUN npm install | |
COPY . . | |
WORKDIR /home/node/project/shared | |
COPY shared/package.json . | |
RUN npm install | |
COPY . . | |
WORKDIR /home/node/project |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment