Spaces:
Sleeping
Sleeping
File size: 492 Bytes
3ee98d5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
FROM python:3.10-slim
# System packages for pyodbc, OpenCV, etc.
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
unixodbc-dev \
ffmpeg \
libsm6 \
libxext6 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the backend code and data files
COPY . .
EXPOSE 7860
# Start the Flask app
CMD ["python", "app.py"]
|