discord-rich-presence-plex/Dockerfile

12 lines
314 B
Docker
Raw Normal View History

2023-10-01 13:41:42 +00:00
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 IN_CONTAINER true
CMD ["python", "main.py"]