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