Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
FROM alpine

FROM alpine:3.9
STOPSIGNAL 9

RUN apk --update --no-cache add --virtual build-dependencies build-base && \
cd /tmp && \
wget https://github.com/joan2937/pigpio/archive/master.zip && \
unzip -qq master.zip && \
cd pigpio-master && \
sed -i 's/|PROT_EXEC,/,/g' pigpio.c && \
make && \
sed -i 's/ldconfig/ldconfig \/usr\/local/g' Makefile && \
make install && \
Expand All @@ -15,5 +14,6 @@ RUN apk --update --no-cache add --virtual build-dependencies build-base && \
apk --no-cache add tini

COPY entrypoint.sh /entrypoint.sh
RUN chmod u+x /entrypoint.sh

ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"]
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ echo "Starting PigPiod..."
# gpiod sometimes leaves pid files around, just clean them
rm -f /var/run/pigpio.pid

exec /usr/local/bin/pigpiod -g -a 1 $@
exec /usr/local/bin/pigpiod -g $@