devils-advocate / Dockerfile
Kirtan001's picture
first commit
cb953ef
raw
history blame contribute delete
504 Bytes
# Use a lightweight Python version
FROM python:3.9-slim
# Set the working directory inside the container
WORKDIR /app
# Copy your files to the container
COPY . .
# Install dependencies
# We use --no-cache-dir to keep the image small
RUN pip install --no-cache-dir -r requirements.txt
# Expose port 7860 (Required for Hugging Face Spaces)
EXPOSE 7860
# Command to run the app
# Notice we force the port to 7860 here
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]