Spaces:
Sleeping

epl-predictor-api / Dockerfile
otito254's picture
Dockerfile
9ef8bc8
Raw History Blame Contribute Delete
453 Bytes
FROM python:3.11-slim
RUN apt-get update && apt-get install -y \
gcc \
g++ \
libgomp1 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Models are already at models/saved/ — no download needed
ENV MODELS_DIR=models/saved
ENV FEATURES_PARQUET=/tmp/features.parquet
EXPOSE 7860
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]