discord-rich-presence-plex/Dockerfile

12 lines
573 B
Docker
Raw Permalink Normal View History

2023-10-01 13:41:42 +00:00
FROM python:3.10-alpine
2023-11-06 11:13:28 +00:00
ARG TARGETOS
ARG TARGETARCH
RUN OSARCH="$TARGETOS-$TARGETARCH"; if [[ "$OSARCH" = "linux-386" || "$OSARCH" = "linux-arm" ]]; then apk --no-cache add build-base python3 python3-dev python3-tkinter openssl bash git meson py3-pip sudo freetype-dev fribidi-dev harfbuzz-dev jpeg-dev lcms2-dev libimagequant-dev openjpeg-dev tcl-dev tiff-dev tk-dev zlib-dev; fi
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 . .
ENV DRPP_IS_IN_CONTAINER=true
ENV DRPP_NO_PIP_INSTALL=true
2024-02-06 13:29:01 +00:00
ENTRYPOINT ["python", "main.py"]