mirror of
https://github.com/Screenly/Anthias.git
synced 2026-05-03 04:45:31 -04:00
* Upgrades base image to Buster (from Jessie) * Upgrades requirements * Refactors Dockerfiles to best practice
38 lines
987 B
Docker
38 lines
987 B
Docker
FROM balenalib/%%BALENA_MACHINE_NAME%%-debian:buster
|
|
|
|
RUN apt-get update && \
|
|
apt-get -y install --no-install-recommends \
|
|
build-essential \
|
|
curl \
|
|
ffmpeg \
|
|
git \
|
|
libffi-dev \
|
|
libssl-dev \
|
|
lsb-release \
|
|
mplayer \
|
|
net-tools \
|
|
procps \
|
|
python-pip \
|
|
python-setuptools \
|
|
python-dev \
|
|
python-gobject \
|
|
python-pil \
|
|
python-simplejson \
|
|
sqlite3 \
|
|
&& \
|
|
apt-get clean
|
|
|
|
# Install Python requirements
|
|
ADD requirements/requirements.txt /tmp/requirements.txt
|
|
RUN pip install --no-cache-dir -r /tmp/requirements.txt
|
|
ADD requirements/requirements.dev.txt /tmp/requirements.dev.txt
|
|
RUN pip install --no-cache-dir -r /tmp/requirements.dev.txt
|
|
|
|
# Setup nginx
|
|
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"]
|