mirror of
https://github.com/phin05/discord-rich-presence-plex
synced 2024-11-24 18:43:02 +00:00
11 lines
334 B
Docker
11 lines
334 B
Docker
FROM python:3.10-alpine
|
|
ARG USERNAME=app
|
|
ARG USER_UID=10000
|
|
ARG USER_GID=$USER_UID
|
|
RUN addgroup -g $USER_GID $USERNAME && adduser -u $USER_UID -G $USERNAME -D $USERNAME
|
|
WORKDIR /app
|
|
COPY requirements.txt .
|
|
RUN pip install -r requirements.txt --no-cache-dir
|
|
COPY . .
|
|
ENV DRPP_CONTAINER_DEMOTION_UID=$USER_UID
|
|
CMD ["python", "main.py"]
|