-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (27 loc) · 829 Bytes
/
Dockerfile
File metadata and controls
33 lines (27 loc) · 829 Bytes
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
30
31
32
33
FROM python:3.10-slim
# Install build dependencies for dlib
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
libopenblas-dev \
liblapack-dev \
libx11-dev \
libgtk-3-dev \
wget \
bzip2 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy requirements first for layer caching
COPY requirements.txt .
# Replace dlib-bin with dlib for Linux (dlib-bin is Windows-only)
RUN sed -i 's/dlib-bin/dlib/' requirements.txt && \
pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY emotion_analyzer.py .
COPY gui_app.py .
COPY main.py .
# Download shape predictor
RUN wget -q http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2 \
&& bunzip2 shape_predictor_68_face_landmarks.dat.bz2
# Default command
CMD ["python", "main.py", "--help"]