mirror of
https://github.com/Screenly/Anthias.git
synced 2026-03-09 02:06:22 -04:00
36 lines
900 B
Docker
36 lines
900 B
Docker
FROM debian:stretch
|
|
|
|
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-gobject \
|
|
python-imaging \
|
|
python-netifaces \
|
|
python-simplejson \
|
|
sqlite3 \
|
|
&& \
|
|
apt-get clean
|
|
|
|
# Install Python requirements
|
|
ADD requirements/requirements.txt /tmp/requirements.txt
|
|
RUN curl -s https://bootstrap.pypa.io/get-pip.py | python && pip install -r /tmp/requirements.txt
|
|
|
|
RUN useradd pi
|
|
|
|
RUN mkdir -p /home/pi/.screenly /home/pi/screenly /home/pi/screenly_assets
|
|
RUN chown -R pi:pi /home/pi/.screenly /home/pi/screenly_assets
|
|
|
|
USER pi
|
|
WORKDIR /home/pi/screenly
|
|
|
|
CMD celery worker -A server.celery -B -n worker@screenly --loglevel=info --schedule /tmp/celerybeat-schedule
|