Merge pull request #44 from omerlh/docker

Added docker file
This commit is contained in:
Mario Gómez 2018-03-20 09:19:39 -06:00 committed by GitHub
commit 7550ea58c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
MFRC522.pyc

18
Dockerfile Normal file
View file

@ -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

2
requirements.txt Normal file
View file

@ -0,0 +1,2 @@
RPi.GPIO==0.6.3
-e git+https://github.com/lthiery/SPI-Py.git#egg=spi-pi