mirror of
https://github.com/Screenly/Anthias.git
synced 2026-05-04 05:13:23 -04:00
39 lines
990 B
Docker
39 lines
990 B
Docker
FROM balenalib/%%BALENA_MACHINE_NAME%%-debian:jessie
|
|
MAINTAINER Pavel Safronov
|
|
|
|
RUN apt-get update && \
|
|
apt-get -y install \
|
|
build-essential \
|
|
curl \
|
|
git-core \
|
|
libffi-dev \
|
|
libssl-dev \
|
|
matchbox \
|
|
net-tools \
|
|
nginx-light \
|
|
omxplayer \
|
|
psmisc \
|
|
python-dev \
|
|
python-imaging \
|
|
python-netifaces \
|
|
python-simplejson \
|
|
libraspberrypi0 \
|
|
ifupdown \
|
|
sqlite3 \
|
|
uzbl \
|
|
x11-xserver-utils \
|
|
xserver-xorg && \
|
|
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 --upgrade -r /tmp/requirements.txt
|
|
|
|
RUN rm /etc/nginx/sites-enabled/default
|
|
COPY ansible/roles/ssl/files/nginx_resin.conf /etc/nginx/sites-enabled/screenly.conf
|
|
|
|
COPY . /tmp/screenly
|
|
|
|
CMD ["bash", "/tmp/screenly/bin/start_balena.sh", "--setup", "--server"]
|