Neural-AI / Dockerfile
Dhiraj20's picture
Update Dockerfile
d137893 verified
raw
history blame contribute delete
607 Bytes
# Use an official Python runtime as a parent image
FROM python:3.10-slim
# Set the working directory in the container
WORKDIR /app
# Install system dependencies for OpenCV
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Copy the requirements file into the container
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 the app runs on (Hugging Face Spaces default)
EXPOSE 7860
# Run the application
CMD ["python", "main.py"]