From 86f66b9887f88f83d4a4d742695c8b485feb9e12 Mon Sep 17 00:00:00 2001 From: omer Date: Sat, 5 Aug 2017 22:01:15 +0300 Subject: [PATCH] Added docker file --- .gitignore | 1 + Dockerfile | 18 ++++++++++++++++++ requirements.txt | 2 ++ 3 files changed, 21 insertions(+) create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 requirements.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9c95fc0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +MFRC522.pyc diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..34aa050 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM armv7/armhf-ubuntu +RUN apt-get update && apt-get install -y \ + python \ + python-dev \ + python-pip \ + python-virtualenv \ + python-setuptools \ + gcc-multilib \ + git \ + ssh \ + --no-install-recommends \ + && pip install --upgrade pip \ + && pip install wheel +WORKDIR /usr/app +COPY requirements.txt /usr/app +RUN pip install -r requirements.txt +COPY . /usr/app +CMD python Read.py diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..7d616f4 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +RPi.GPIO==0.6.3 +-e git+https://github.com/lthiery/SPI-Py.git#egg=spi-pi