Files
Anthias/docker/Dockerfile.websocket.dev
Viktor Petersson fdaa395ef8 Fixes local development environment
* Upgrades base image to Buster (from Jessie)
* Upgrades requirements
* Refactors Dockerfiles to best practice
2020-10-29 14:32:43 +00:00

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