-
Notifications
You must be signed in to change notification settings - Fork 37
/
Dockerfile
39 lines (31 loc) · 866 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
33
34
35
36
37
38
39
FROM python:3.9-buster
LABEL maintainer="Martin Jones <[email protected]>"
# Update and install ffmpeg
RUN apt-get update && \
apt-get install -y ffmpeg
# Copy and install requirements
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
# create abc user so root isn't used
RUN \
groupmod -g 1000 users && \
useradd -u 911 -U -d /config -s /bin/false abc && \
usermod -G users abc && \
# create some files / folders
mkdir -p /config /app /sonarr_root /logs && \
touch /var/lock/sonarr_youtube.lock
# add volumes
VOLUME /config
VOLUME /sonarr_root
VOLUME /logs
# add local files
COPY app/ /app
# update file permissions
RUN \
chmod a+x \
/app/sonarr_youtubedl.py \
/app/utils.py \
/app/config.yml.template
# ENV setup
ENV CONFIGPATH /config/config.yml
CMD [ "python", "-u", "/app/sonarr_youtubedl.py" ]