Files
Anthias/Dockerfile
Viktor Petersson 2047f30b7e Fixes Docker build.
2017-06-29 14:16:49 +01:00

30 lines
832 B
Docker

FROM debian:jessie
MAINTAINER Viktor Petersson <vpetersson@screenly.io>
RUN apt-get update && \
apt-get -y install build-essential git-core net-tools python-netifaces python-simplejson python-imaging python-dev sqlite3 libffi-dev libssl-dev curl && \
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