forked from Screenly/Anthias
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 739 Bytes
/
Dockerfile
File metadata and controls
29 lines (21 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM debian:wheezy
MAINTAINER Viktor Petersson <vpetersson@wireload.net>
RUN apt-get update && \
apt-get -y install git-core net-tools python-pip python-netifaces python-simplejson python-imaging python-dev sqlite3 && \
apt-get clean
# Install Python requirements
ADD requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt
# Create runtime user
RUN useradd pi
# Install config file and file structure
RUN mkdir -p /home/pi/.screenly /home/pi/screenly /home/pi/screenly_assets
COPY misc/screenly.conf /home/pi/.screenly/screenly.conf
RUN chown -R pi:pi /home/pi
# Copy in code base
COPY . /home/pi/screenly
USER pi
WORKDIR /home/pi/screenly
EXPOSE 8080
VOLUME /home/pi/screenly
CMD python server.py