mirror of
https://github.com/phin05/discord-rich-presence-plex
synced 2024-11-10 04:54:12 +00:00
11 lines
573 B
Docker
11 lines
573 B
Docker
FROM python:3.10-alpine
|
|
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
|
|
WORKDIR /app
|
|
COPY requirements.txt .
|
|
RUN pip install -U -r requirements.txt --no-cache-dir
|
|
COPY . .
|
|
ENV DRPP_IS_IN_CONTAINER=true
|
|
ENV DRPP_NO_PIP_INSTALL=true
|
|
ENTRYPOINT ["python", "main.py"]
|