discord-rich-presence-plex/Dockerfile

11 lines
334 B
Docker
Raw Normal View History

2023-10-01 13:41:42 +00:00
FROM python:3.10-alpine
ARG USERNAME=app
2023-11-05 05:24:45 +00:00
ARG USER_UID_GID=10000
RUN addgroup -g $USER_UID_GID $USERNAME && adduser -u $USER_UID_GID -G $USERNAME -D $USERNAME
2023-10-01 13:41:42 +00:00
WORKDIR /app
COPY requirements.txt .
2023-11-05 05:24:45 +00:00
RUN pip install -U -r requirements.txt --no-cache-dir
2023-10-01 13:41:42 +00:00
COPY . .
2023-11-05 05:24:45 +00:00
ENV DRPP_CONTAINER_DEMOTION_UID_GID=$USER_UID_GID
2023-10-01 13:41:42 +00:00
CMD ["python", "main.py"]