From 3f598a97602ee928cd0f806480ab9d7d16ecdd9d Mon Sep 17 00:00:00 2001 From: Ethan Carter Edwards Date: Thu, 6 Feb 2025 23:24:51 -0500 Subject: [PATCH] fix dockerfile to work with UV Had to switch to debian. feelsbadman --- .dockerignore | 1 + Dockerfile | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..1d17dae --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +.venv diff --git a/Dockerfile b/Dockerfile index 1c6fb7c..853a4b6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ -FROM python:alpine +FROM python +COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ -RUN apk update && apk add --no-cache ffmpeg uv clang gcompat +RUN apt-get update && apt-get -y install ffmpeg && rm -rf /var/lib/apt/lists/* WORKDIR /app -COPY ./pyproject.toml ./README.md /app/ -RUN uv sync COPY . /app -CMD ["uv", "run", "start"] +RUN uv sync +ENTRYPOINT ["uv", "run", "start"]