Spaces:
Sleeping
Sleeping
File size: 755 Bytes
177235a 8567052 384cb2b 7424b55 0b902c3 384cb2b 17fae16 be8d02d 177235a 17fae16 177235a be8d02d ac5562e 7424b55 5a6b176 7424b55 5a6b176 384cb2b 0b439e5 7424b55 eb6dc8b | 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 26 27 28 29 | # Upgrade to Python 3.10 to satisfy package requirements
FROM python:3.10-slim
# Set working directory inside the container
WORKDIR themehmi/Attendance-Marking-System
# IMPORTANT: Install system dependencies required by OpenCV, dlib, and pip
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
libgl1 \
libglib2.0-0 \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy your requirements file first (for caching purposes)
COPY requirements.txt .
# Upgrade pip and install Python packages
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# Copy the rest of your application code
COPY . .
EXPOSE 7860
# Command to run your attendance system
CMD ["python", "app.py"] |