This commit is contained in:
21
Dockerfile
Normal file
21
Dockerfile
Normal 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" ]
|
||||
Reference in New Issue
Block a user