Redlion007's picture
Fix workflow location - move to .github/workflows/
4084ac8
Raw
History Blame Contribute Delete
484 Bytes
FROM python:3.10-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Install CPU-only torch first to save space
RUN pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu
COPY requirements.docker.txt .
RUN pip install --no-cache-dir -r requirements.docker.txt
COPY app/ ./app
EXPOSE 8000
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]