forked from rfsbraz/deleterr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (28 loc) · 860 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
# Use an official Python runtime as a parent image
FROM python:3.11.5-bookworm
LABEL maintainer="rfsbraz"
ARG BRANCH
ARG COMMIT
ARG TAG
ENV TZ=UTC
ENV PLEXAPI_CONFIG_PATH='/app/.plexapi/config.ini'
# Set the working directory in the container to /app
WORKDIR /app
# Add the current directory contents into the container at /app
ADD . /app
RUN \
groupadd -g 1000 deleterr && \
useradd -u 1000 -g 1000 deleterr && \
echo ${BRANCH} > /app/branch.txt && \
echo ${COMMIT} > /app/version.txt && \
echo ${COMMIT_TAG} > /app/commit_tag.txt
RUN \
mkdir /config && \
mkdir /config/logs && \
touch /config/DOCKER
ADD ./config/ /config
VOLUME /config
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Run deleterr.py when the container launches
CMD ["python", "-m", "app.deleterr"]