forked from Screenly/Anthias
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.server
53 lines (43 loc) · 1.26 KB
/
Dockerfile.server
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
45
46
47
48
49
50
51
52
53
FROM debian:stretch
MAINTAINER RSrini <[email protected]>
RUN apt-get update && \
apt-get -y install \
build-essential \
curl \
ffmpeg \
git-core \
libffi-dev \
libssl-dev \
net-tools \
procps \
mplayer \
python-dev \
python-netifaces \
python-simplejson \
python-pil \
python-pip \
python-setuptools \
sqlite3 \
unoconv \
imagemagick \
&& \
apt-get clean
RUN pip install --upgrade pip
# Install Python requirements
ADD requirements.common.txt /tmp/requirements.common.txt
ADD requirements.server.txt /tmp/requirements.server.txt
RUN pip install -r /tmp/requirements.common.txt
RUN pip install -r /tmp/requirements.server.txt
# Create runtime user
RUN useradd pi -d /home/pi \
&& /usr/sbin/usermod -a -G video pi
# Install config file and file structure
RUN mkdir -p /home/pi/.screenly /home/pi/screenly /home/pi/screenly_assets /home/pi/screenly_presentation_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