Spaces:
Runtime error
Runtime error
Upload backend_files/Dockerfile with huggingface_hub
Browse files1 unmodified line2345678910111 unmodified line1314151617181 unmodified lineFROM python:3.9-slim-buster# Set the working directory in the containerWORKDIR /app/backend_files# Copy all files from the current directory to the container's working directoryCOPY . .# Install the Python dependenciesRUN pip install --no-cache-dir -r requirements.txt1 unmodified line# Expose the port that the Flask app will run onEXPOSE 5000# Define the command to run the Flask applicationCMD ["python", "app.py"]1 unmodified line234567891011121 unmodified line14151617181 unmodified lineFROM python:3.9-slim-buster# 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.txt1 unmodified line# 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"]
backend_files/Dockerfile+6-6