File size: 279 Bytes
009b30f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | FROM python:3.10-slim
# Install dependencies
RUN pip install --no-cache-dir fastapi uvicorn torch transformers
# Copy model + code
WORKDIR /app
COPY . .
# Expose port
EXPOSE 8000
# Start FastAPI
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|