feat: api
Some checks failed
Build container / build-docker (push) Failing after 28s

This commit is contained in:
vera
2026-02-10 17:56:37 +08:00
parent d9ba359ddf
commit 7879751126
8 changed files with 550 additions and 2 deletions

21
Dockerfile Normal file
View File

@ -0,0 +1,21 @@
FROM python:3.12-slim
RUN apt-get update && apt-get -y install \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
# Create app directory
WORKDIR /app
# Copy dependency definition files
COPY pyproject.toml uv.lock ./
# Install dependencies
ENV UV_HTTP_TIMEOUT=1200
RUN uv sync
# Copy the rest of the application
COPY . .
EXPOSE 5000
CMD [ "uv", "run", "api.py" ]