This commit is contained in:
matatonic 2024-06-27 01:43:43 -04:00
parent c957ad86fc
commit be759f3fea
7 changed files with 24 additions and 34 deletions

View file

@ -1,7 +1,9 @@
FROM python:3.11-slim
RUN --mount=type=cache,target=/root/.cache/pip pip install -U pip
ARG TARGETPLATFORM
RUN apt-get update && apt-get install --no-install-recommends -y curl ffmpeg
RUN apt-get update && apt-get install --no-install-recommends -y curl ffmpeg libaio-dev
RUN if [ "$TARGETPLATFORM" != "linux/amd64" ]; then apt-get install --no-install-recommends -y build-essential ; fi
RUN if [ "$TARGETPLATFORM" != "linux/amd64" ]; then curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y ; fi
ENV PATH="/root/.cargo/bin:${PATH}"