mental_issue / Dockerfile
sakshi116's picture
Rename DockerFile to Dockerfile
e00a558 verified
raw
history blame contribute delete
449 Bytes
# Use a lightweight Python base image
FROM python:3.9-slim
# Set working directory
WORKDIR /app
# Copy requirements first for better caching
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code
COPY . .
# Expose the port (Hugging Face Spaces uses 7860)
EXPOSE 7860
# Run the Flask app (update app.py to use port=7860, host='0.0.0.0')
CMD ["python", "app.py"]