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