mirror of
https://github.com/Screenly/Anthias.git
synced 2026-01-29 08:23:47 -05:00
* Upgrades base image to Buster (from Jessie) * Upgrades requirements * Refactors Dockerfiles to best practice
27 lines
669 B
Docker
27 lines
669 B
Docker
FROM debian:buster
|
|
|
|
RUN apt-get update && \
|
|
apt-get -y install --no-install-recommends \
|
|
build-essential \
|
|
curl \
|
|
python-setuptools \
|
|
python-pip \
|
|
python-dev && \
|
|
apt-get clean
|
|
|
|
# Install Python requirements
|
|
ADD requirements/requirements-websocket.txt /tmp/requirements.txt
|
|
RUN pip install --no-cache-dir -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
|
|
RUN chown -R pi:pi /home/pi/.screenly /home/pi/screenly_assets
|
|
|
|
USER pi
|
|
WORKDIR /home/pi/screenly
|
|
|
|
CMD python websocket_server_layer.py
|