aidetect / Dockerfile
youngjeck's picture
Update Dockerfile
132e595 verified
raw
history blame
335 Bytes
FROM python:3.11-slim
# Create app directory
WORKDIR /app
# Copy requirements first so Docker can cache this step
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of your app
COPY . .
# Run FastAPI
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]