-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
42 lines (34 loc) · 934 Bytes
/
Dockerfile
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
36
37
38
39
40
41
42
# docker build -t juanabascal/ai-surveillance .
# Image
FROM python:3.9-slim-buster
# Setting up working directory
WORKDIR /usr/src/app
COPY requirements.txt ./
# Install system packages
# RUN apt-get update && apt-get install python3 && apt-get install -y --no-install-recommends \
RUN apt-get update && apt-get install -y \
bzip2 \
g++ \
git \
graphviz \
libgl1-mesa-glx \
libhdf5-dev \
openmpi-bin \
wget \
python3-tk \
&& rm -rf /var/lib/apt/lists/*
# Ultralytics and opencv
#RUN pip install ultralytics && \
RUN pip install --no-cache-dir -r requirements.txt
# Minimize image size
RUN (apt-get autoremove -y; \
apt-get autoclean -y)
COPY data/ ./data/
COPY src/ ./src/
COPY runSurveillance.sh ./
RUN chmod +x runSurveillance.sh
#COPY models/ ./models/
ENV QT_X11_NO_MITSHM=1
CMD ["bash"]
# cd src
#ENTRYPOINT [ "python", "./run_cam_surveillance.py"]