Commit eebfebe8 authored by Michal Ratajsky's avatar Michal Ratajsky
Browse files

Refresh dependencies and simplify now that all deps work on Pi 4

parent 0109e0bc
FROM arm32v7/node:10-buster-slim
# Install some extra packages to make sure we can build and "npm install" our dependencies later
# All is done in a single step to avoid unnecessarily building intermediate images
RUN apt-get update && apt-get install --no-install-recommends -y curl git gcc g++ make python2
RUN mkdir -p /usr/src && \
curl -s http://www.airspayce.com/mikem/bcm2835/bcm2835-1.60.tar.gz | tar -C /usr/src -xvz && \
(cd /usr/src/bcm2835-1.60 && \
./configure --prefix=/usr && \
make && \
make install) && \
git clone --branch V71 https://github.com/joan2937/pigpio.git /usr/src/pigpio && \
FROM arm32v7/node:12-alpine
# Install the BCM2835 library - required by the node-dht-sensor node.js package
# This is disabled now as the library is bundled with node-dht-sensor >= 0.4
#
# RUN apk add --no-cache curl gcc g++ make && \
# mkdir -p /usr/src && \
# curl -s http://www.airspayce.com/mikem/bcm2835/bcm2835-1.60.tar.gz | tar -C /usr/src -xvz && \
# (cd /usr/src/bcm2835-1.60 && \
# ./configure --prefix=/usr && \
# make && \
# make install) && \
# rm -rf /usr/src/bcm2835-1.60
# Install the pigpio C library - required by the pigpio node.js package
RUN apk add --no-cache git gcc g++ make python2 && \
git clone -b V71 --single-branch https://github.com/joan2937/pigpio.git /usr/src/pigpio && \
(cd /usr/src/pigpio && \
sed -i 's,/usr/local,/usr,' Makefile && \
sed -i 's,ldconfig,,' Makefile && \
make && \
make install) && \
rm -rf /usr/src/{bcm2835-1.60,pigpio}
rm -rf /usr/src/pigpio
# Create app directory
WORKDIR /usr/src/app
......
......@@ -13,8 +13,8 @@
"express": "^4.17.1"
},
"optionalDependencies": {
"node-dht-sensor": "^0.0.36",
"onoff": "^4.1.3",
"pigpio": "^1.2.3"
"node-dht-sensor": "^0.4.0",
"onoff": "^5.0.0",
"pigpio": "^2.0.1"
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment