1
0
mirror of https://github.com/alexellis/seeds2.git synced 2022-05-09 04:08:56 +03:00

Add Dockerfile

This commit is contained in:
Alex Ellis
2017-06-27 12:50:19 +01:00
parent 40d705884b
commit c5a5754b93
2 changed files with 22 additions and 0 deletions

2
.dockerignore Normal file
View File

@@ -0,0 +1,2 @@
config.py

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM resin/rpi-raspbian
ENTRYPOINT []
RUN mkdir -p /root/seeds2/roboto
WORKDIR /root/seeds2
RUN apt-get update -qy \
&& apt-get install \
python-pip python python-pil \
curl unzip libraspberrypi-bin --no-install-recommends
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN curl -SLO https://storage.googleapis.com/material-design/publish/material_v_11/assets/0B0J8hsRkk91LRjU4U1NSeXdjd1U/RobotoTTF.zip \
&& unzip RobotoTTF.zip -d ./roboto \
&& rm RobotoTTF.zip
COPY *.py ./
CMD ["python", "main.py"]