Skip to content

Instantly share code, notes, and snippets.

@alexellis
Last active May 3, 2018 23:07
Show Gist options
  • Save alexellis/a8e8c3e8a7c9b6e837285d56eaf5d13e to your computer and use it in GitHub Desktop.
Save alexellis/a8e8c3e8a7c9b6e837285d56eaf5d13e to your computer and use it in GitHub Desktop.
Dockerfile for the Blinkt!

Install Docker

# curl -sSL get.docker.com | sh
# sudo usermod pi -aG docker
# exit

Reconnect and:

# https://github.com/pimoroni/blinkt
# cd blinkt

Create above Dockerfile in directory

# docker build -t blinkt .

# docker run --privileged -ti blinkt
FROM resin/rpi-raspbian:jessie
RUN apt-get update -qy && apt-get install -qy \
python \
python-rpi.gpio
WORKDIR /root/
COPY . .
WORKDIR /root/library
RUN python setup.py install
WORKDIR /root/examples/
ENTRYPOINT []
CMD ["python", "larson.py"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment