Spaces:
Runtime error
Runtime error
Upload Dockerfile with huggingface_hub
Browse files3 unmodified lines4567891011121314151617181920213 unmodified lines# Set the working directory in the containerWORKDIR /app# Copy the requirements file into the containerCOPY backend_files/requirements.txt .# Install the Python dependenciesRUN pip install --no-cache-dir -r requirements.txt# Copy the application code and the trained model into the containerCOPY backend_files/app.py .COPY tuned_random_forest_model.joblib .# Expose the port that the Flask app will run onEXPOSE 5000# Define the command to run the Flask applicationCMD ["python", "app.py"]3 unmodified lines4567891011121314151617181920213 unmodified lines# Set the working directory in the containerWORKDIR /app# Copy the requirements file into the container (now directly in the root of the build context)COPY requirements.txt .# Install the Python dependenciesRUN pip install --no-cache-dir -r requirements.txt# Copy the application code and the trained model into the container (now directly in the root of the build context)COPY app.py .COPY tuned_random_forest_model.joblib .# Expose the port that the Flask app will run onEXPOSE 5000# Define the command to run the Flask application using gunicornCMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:5000", "app:app"]
Dockerfile+6-6