forked from mediathekview/plugin.video.mediathekview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (21 loc) · 788 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
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-pip apk-cron vim && \
rm -rf /var/cache/apk/*
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