summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2024-03-09 12:04:10 -0300
committerRoger Gonzalez <roger@rogs.me>2024-03-09 12:04:10 -0300
commitacfb0188a6d0d1a279789f8edcf401d9d244559b (patch)
tree841aeb7a208edda23bc5cd5640be902cc9c00df9 /Dockerfile
parente6c28a587a18e24ef2f119713c4e843af3f52fe8 (diff)
Added Dockerized version
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