mirror of
https://github.com/phin05/discord-rich-presence-plex
synced 2024-11-24 18:43:02 +00:00
10 lines
544 B
Docker
10 lines
544 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
|
|
ENTRYPOINT ["python", "main.py"]
|