Skip to content

Instantly share code, notes, and snippets.

@bunchc
Last active February 11, 2019 21:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bunchc/a91917df1e15ce9a7a24c1dfc57f19f2 to your computer and use it in GitHub Desktop.
Save bunchc/a91917df1e15ce9a7a24c1dfc57f19f2 to your computer and use it in GitHub Desktop.
There Are Door Lights
FROM arm32v6/alpine:latest
RUN apk --no-cache add \
bash \
python3 \
python3-dev \
build-base \
vim \
git \
curl \
gcc \
g++ \
flex \
bison \
linux-headers \
libffi-dev \
libusb \
usbutils \
sudo
RUN adduser -u 1000 -G wheel -D alpine && \
rm -rf /var/cache/apk/* && \
python3 -m ensurepip && \
pip3 install --upgrade pip setuptools && \
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \
rm -rf /root/.cache && \
pip3 install --no-cache-dir RPi.GPIO gpiozero pyusb infi
COPY hub_ctrl.py .
COPY door_sensor.py .
CMD ["/bin/bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment