CoolFace
Apppublic

MalikShehram/Multi-Class-Logistic-Regression-model

sourceHugging Facemitupdated 8mo agoView on Hugging Face
0likes
Dockerfile21 linesDownload Raw Back to root
1# Use Python 3.10 for better compatibility with modern libraries2FROM python:3.10-slim3 4# Set the working directory5WORKDIR /code6 7# Copy requirements and install8COPY ./requirements.txt /code/requirements.txt9 10# Upgrade pip and install dependencies11RUN pip install --no-cache-dir --upgrade pip && \12    pip install --no-cache-dir -r /code/requirements.txt13 14# Copy the rest of the files15COPY . .16 17# Grant permissions (sometimes needed for HF Spaces)18RUN chmod -R 777 /code19 20# Start the app21CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]