summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..44aaa8b
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,8 @@
+FROM python:alpine
+
+RUN apk update && apk add --no-cache curl gcc g++ make libxml2-dev libxslt-dev tzdata && \
+ pip install --no-cache-dir subscleaner
+
+RUN echo -e "SHELL=/bin/sh\nPATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin\n\n" > /etc/crontabs/root
+
+CMD echo "$CRON find /files -name \"*.srt\" | $(which subscleaner)" >> /etc/crontabs/root && crond -f