forked from jkirkcaldy/plex-utills
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·42 lines (32 loc) · 1 KB
/
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
40
41
42
FROM python:3.9-bullseye
LABEL maintainer="JKirkcaldy"
LABEL support = "https://github.com/jkirkcaldy/plex-utills"
WORKDIR /app
COPY ./app ./app
COPY ./main.py .
COPY ./requirements.txt .
COPY ./entrypoint.sh .
COPY ./start.sh .
COPY ./dv_test.py .
COPY ./scan_test.py .
# Install requirements
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 80
EXPOSE 5000
VOLUME [ "/films" ]
VOLUME [ "/config" ]
VOLUME [ "/logs" ]
RUN wget https://mediaarea.net/repo/deb/repo-mediaarea_1.0-19_all.deb
RUN dpkg -i repo-mediaarea_1.0-19_all.deb
RUN apt-get update && apt-get install -y supervisor mediainfo nginx \
&& rm -rf /var/lib/apt/lists/*
COPY supervisord-debian.conf /etc/supervisor/conf.d/supervisord.conf
COPY app/static/dockerfiles/default /etc/nginx/sites-enabled/default
ENV NGINX_MAX_UPLOAD 0
ENV NGINX_WORKER_PROCESSES 1
ENV LISTEN_PORT 80
RUN chmod +x start.sh
RUN chmod +x entrypoint.sh
ENV TZ=Europe/London
ENTRYPOINT ["/app/entrypoint.sh"]
CMD ["/app/start.sh"]