-
Notifications
You must be signed in to change notification settings - Fork 25
/
Dockerfile
32 lines (24 loc) · 908 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM ghcr.io/linuxserver/mariadb
# fill variables from linuxserver/mariadb with mediathekview default (https://docs.linuxserver.io/images/docker-mariadb)
ENV MYSQL_DATABASE='mediathekview'
ENV MYSQL_USER='mediathekview'
ENV MYSQL_PASSWORD='mediathekview'
ENV MYSQL_ROOT_PASSWORD='mediathekview_root'
# custom variables
ENV CRON_TIMESPEC="0 4-22/1 * * *"
ENV RUN_ON_STARTUP='no'
# install dependencies
RUN apk update && apk upgrade && \
apk add py3-virtualenv py3-pip apk-cron vim sqlite && \
rm -rf /var/cache/apk/*
# create Python virtual environment
RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
RUN pip3 install mysql-connector-python
#cop mediathekview plugin
WORKDIR /plugin.video.mediathekview
ADD * ./
ADD resources/ ./resources/
#add a script that configures and starts cronjob
ADD docker/95_mediathekview_db /etc/cont-init.d/
#CMD and ENTRYPOINT are set by base image