forked from Screenly/Anthias
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (36 loc) · 1001 Bytes
/
Dockerfile
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM debian:stretch
MAINTAINER Viktor Petersson <[email protected]>
RUN apt-get update && \
apt-get -y install \
build-essential \
curl \
ffmpeg \
git-core \
libffi-dev \
libssl-dev \
mplayer \
net-tools \
procps \
python-dev \
python-imaging \
python-netifaces \
python-simplejson \
sqlite3 \
&& \
apt-get clean
# Install Python requirements
ADD requirements.txt /tmp/requirements.txt
RUN curl -s https://bootstrap.pypa.io/get-pip.py | python && \
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 ansible/roles/screenly/files/screenly.conf /home/pi/.screenly/screenly.conf
# Copy in code base
COPY . /home/pi/screenly
RUN chown -R pi:pi /home/pi
USER pi
WORKDIR /home/pi/screenly
EXPOSE 8080
CMD python server.py