Files
Anthias/docker/Dockerfile.test.tmpl
Nico Miguelino 99a38d69ee Upgrade containers to use Bookworm (#1980)
* upgrade containers from using Buster to Bookworm
* replace OMX with VLC
* update the Qt version, webview hash, and the webview download URL
* enable FKMS for Raspberry Pi 1, 2, 3 and 4 devices
2024-07-22 14:26:01 -07:00

63 lines
1.8 KiB
Docker

# vim: ft=dockerfile
# @TODO: Uncomment this build stage when test_add_asset_streaming is fixed.
# FROM debian:buster as builder
# RUN apt-get update && \
# apt-get -y install --no-install-recommends \
# build-essential \
# git \
# ca-certificates && \
# apt-get clean
# RUN cd /opt && \
# git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg && \
# cd ffmpeg && \
# git checkout 2ca65fc7b74444edd51d5803a2c1e05a801a6023 && \
# ./configure --disable-x86asm && make -j$(nproc) --quiet
ENV DEBIAN_FRONTEND noninteractive
RUN --mount=type=cache,target=/var/cache/apt \
apt-get -y install wget \
unzip \
libnss3 \
libatk1.0-0 \
libatk-bridge2.0.0 \
libcups2 \
libxcomposite1 \
libxdamage1
# @TODO: Uncomment the lines below when test_add_asset_streaming is fixed.
# WORKDIR /opt/ffmpeg
# COPY --from=builder /opt/ffmpeg/ffserver ./
ADD requirements/requirements.txt /tmp/requirements.txt
ADD requirements/requirements.dev.txt /tmp/requirements.dev.txt
ADD requirements/requirements.viewer.txt /tmp/requirements.viewer.txt
RUN wget $CHROMEDRIVER_DL_URL -O /tmp/chromedriver.zip && \
unzip -o /tmp/chromedriver.zip -d /opt
RUN wget $CHROME_DL_URL -O /tmp/chrome.zip && \
unzip -o /tmp/chrome.zip -d /opt
RUN --mount=type=cache,target=/root/.cache/pip \
pip3 install \
-r /tmp/requirements.txt \
-r /tmp/requirements.dev.txt \
-r /tmp/requirements.viewer.txt \
--break-system-packages
RUN mkdir -p /usr/src/app
COPY . /usr/src/app
WORKDIR /usr/src/app
RUN mkdir -p /data/.screenly /data/screenly_assets
RUN cp ansible/roles/screenly/files/screenly.db \
ansible/roles/screenly/files/screenly.conf /data/.screenly
ENV GIT_HASH=$GIT_HASH
ENV GIT_SHORT_HASH=$GIT_SHORT_HASH
ENV GIT_BRANCH=$GIT_BRANCH
ENV PATH="/opt/chrome-linux64:/opt/chromedriver-linux64:\$PATH"