Yield-predictor / Dockerfile
Ayesha-Majeed's picture
Rename Dockerfile (1) to Dockerfile
03d783a verified
raw
history blame contribute delete
552 Bytes
# βœ… Force Python 3.11 to match local environment
FROM python:3.11-slim
WORKDIR /app
COPY . /app
# βœ… Clean upgrade and install lightweight dependencies first
RUN apt-get update && apt-get install -y gcc g++ && rm -rf /var/lib/apt/lists/*
# βœ… Install compatible libraries
RUN pip install --upgrade pip
RUN pip install --no-cache-dir \
gradio==5.49.1 \
xgboost==2.1.0 \
scikit-learn==1.7.2 \
pandas==2.3.3 \
numpy==2.3.4 \
joblib==1.4.2 \
openpyxl==3.1.5 \
tabulate==0.9.0
EXPOSE 7860
CMD ["python", "app.py"]