Added docker file

This commit is contained in:
omer 2017-08-05 22:01:15 +03:00
parent 8ddc994007
commit 86f66b9887
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