EcoSmart2 / Dockerfile
fady-50's picture
Update Dockerfile
92e83d6 verified
Raw
History Blame Contribute Delete
365 Bytes
FROM python:3.10-slim
WORKDIR /app
RUN apt-get update && apt-get install -y gcc && rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy all required files
COPY main.py .
COPY ecosmart_model.pkl .
COPY "EcoSmart_PT3.xlsx" .
EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]