mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
24 lines
473 B
Text
24 lines
473 B
Text
|
|
# Dockerfile
|
||
|
|
FROM python:3.12-slim
|
||
|
|
|
||
|
|
WORKDIR /app
|
||
|
|
|
||
|
|
RUN apt-get update && apt-get install -y \
|
||
|
|
git \
|
||
|
|
ffmpeg \
|
||
|
|
&& apt-get clean \
|
||
|
|
&& rm -rf /var/lib/apt/lists/*
|
||
|
|
|
||
|
|
# Copy and install requirements
|
||
|
|
COPY requirements.txt .
|
||
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
||
|
|
|
||
|
|
COPY . ./api
|
||
|
|
|
||
|
|
ENV PYTHONPATH=/app
|
||
|
|
|
||
|
|
# Expose the port FastAPI will run on
|
||
|
|
EXPOSE 8000
|
||
|
|
|
||
|
|
# Run the FastAPI app with uvicorn
|
||
|
|
CMD ["uvicorn", "api.app:app", "--host", "0.0.0.0", "--port", "8000"]
|