mirror of
https://github.com/Screenly/Anthias.git
synced 2026-01-04 04:08:25 -05:00
43 lines
1.1 KiB
Docker
43 lines
1.1 KiB
Docker
FROM debian:stretch
|
|
|
|
RUN apt-get update && \
|
|
apt-get -y install \
|
|
build-essential \
|
|
curl \
|
|
git-core \
|
|
libffi-dev \
|
|
libssl-dev \
|
|
lsb-release \
|
|
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
|
|
ADD requirements/requirements.dev.txt /tmp/requirements.dev.txt
|
|
RUN curl -s https://bootstrap.pypa.io/get-pip.py | python && \
|
|
pip install -r /tmp/requirements.txt && \
|
|
pip install -r /tmp/requirements.dev.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
|
|
RUN chown -R pi:pi /home/pi/.screenly /home/pi/screenly_assets
|
|
|
|
USER pi
|
|
WORKDIR /home/pi/screenly
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD python server.py
|