-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
37 lines (27 loc) · 832 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
# Use an official Python runtime as a parent image
FROM python:3.9-alpine
LABEL maintainer="rfsbraz"
ARG BRANCH
ARG COMMIT
ARG COMMIT_TAG
ENV TZ=UTC
ENV PLEXAPI_CONFIG_PATH='/app/.plexapi/config.ini'
# Set the working directory in the container to /app
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY ./app /app/app
COPY requirements.txt /app
RUN \
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
COPY ./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"]