mirror of
https://github.com/alexellis/seeds2.git
synced 2022-05-09 04:08:56 +03:00
Add Dockerfile
This commit is contained in:
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@@ -0,0 +1,2 @@
|
||||
config.py
|
||||
|
||||
20
Dockerfile
Normal file
20
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user