-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
29 lines (20 loc) · 681 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
FROM python:3.9-buster
RUN mkdir /config
RUN mkdir /recordings
RUN mkdir -p /opt/camwatch/src
RUN apt-get update
RUN apt-get install -y --no-install-recommends git
COPY cam_detector /opt/camwatch/src/
COPY config/camwatch-quick_start.yaml /config/camwatch.yaml
COPY config/camwatch-defaults.yaml /config/camwatch-defaults.yaml
COPY requirements.txt /tmp/
RUN pip install --requirement /tmp/requirements.txt
RUN rm /tmp/requirements.txt
RUN groupadd -g 1001 camwatch
RUN useradd -u 1001 -g camwatch -m -s /bin/bash camwatch
RUN chown -R camwatch:camwatch /recordings
ENV CV_CONFIG_PATH /config
USER camwatch
WORKDIR /opt/camwatch
CMD ["bash"]
# CMD ["python", "./main.py"]