-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (28 loc) · 807 Bytes
/
Dockerfile
File metadata and controls
35 lines (28 loc) · 807 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
34
35
FROM python:3.11-slim
# Install system dependencies required for dlib and face_recognition
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
libopenblas-dev \
liblapack-dev \
libx11-dev \
libgtk-3-dev \
libboost-all-dev \
libatlas-base-dev \
libjpeg-dev \
libpython3-dev \
git \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy necessary files
COPY requirements.txt ./
COPY index-and-cluster.py ./
# Install Python dependencies
RUN pip install --upgrade pip && pip install -r requirements.txt
# Create stripped package list
RUN pip list --format=freeze | cut -d "=" -f 1 > /app/packages.txt
# Add entrypoint script
COPY run-multi.sh /app/run-multi.sh
RUN chmod +x /app/run-multi.sh
CMD ["/app/run-multi.sh"]