Create Dockerfile
Browse files123456789101112131415161718192021222324# Dockerfile
# Use the official, full Python image for best compatibilityFROM python:3.11
# Set the working directory inside the containerWORKDIR /app
# Install system dependencies listed in packages.txtCOPY packages.txt .RUN apt-get update && xargs -a packages.txt apt-get install -y --no-install-recommends && apt-get clean && rm -rf /var/lib/apt/lists/*
# Copy and install Python requirementsCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of your application codeCOPY . .
# Expose the port that the application will run onEXPOSE 7860
# NO CMD OR ENTRYPOINT LINE HERE# The Hugging Face platform will provide the command to run the app.DockerfileAdded+24