forked from NitriKx/docker-Plex-Cleaner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (20 loc) · 861 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 alpine:3.7
MAINTAINER Benoît Sauvère <benoit.sauvere@gmail.com>
RUN mkdir /app && mkdir /config && mkdir /plexdata && mkdir /logs && mkdir /etc/cron.d
RUN apk add --no-cache python git bash dcron && git clone https://github.com/ngovil21/Plex-Cleaner.git /app && apk del git && rm -rf /var/cache/apk/*
# Add the scripts
COPY run-entry.sh /app/run-entry.sh
COPY run-plexcleaner.sh /app/run-plexcleaner.sh
RUN chmod +x /app/run-entry.sh && chmod +x /app/run-plexcleaner.sh
# Default interval to 5min
ENV EXECUTION_CRON_EXPRESSION */5 * * * *
# REQUIRED
# Store the configuration out of the container
VOLUME ["/config"]
# OPTIONNAL
# In case the script is configured to directly delete the files, we need to mount the plex data folder
VOLUME ["/plexdata"]
# OPTIONNAL
# Contains the execution logs
VOLUME ["/logs"]
ENTRYPOINT ["/app/run-entry.sh"]