time-period-api / Dockerfile
DelaliScratchwerk's picture
Update Dockerfile
8dbb1e9 verified
raw
history blame contribute delete
341 Bytes
FROM python:3.10-slim
# Install system dependencies
RUN apt-get update && apt-get install -y git
# Install Python dependencies
RUN pip install --no-cache-dir fastapi uvicorn transformers torch
# Copy app files
COPY app.py /app/app.py
WORKDIR /app
# Start FastAPI server
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]