Spaces:
Runtime error
Runtime error
Upload backend_files/Dockerfile with huggingface_hub
Browse files3 unmodified lines4567891011121314151617183 unmodified lines# Set the working directory in the containerWORKDIR /app# Copy the entire backend_files directory from the build context into /app in the container# The build context is the root of the Hugging Face repository, where backend_files/ resides.COPY backend_files/ /app/# Install the Python dependenciesRUN pip install --no-cache-dir -r requirements.txt# 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"]3 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"]
backend_files/Dockerfile+8-5