camera-motion-detect/Dockerfile

33 lines
713 B
Docker
Raw Permalink Normal View History

2022-06-08 05:48:16 +00:00
FROM ubuntu:focal
2022-02-12 18:44:20 +00:00
WORKDIR /app
ENV DEBIAN_FRONTEND=noninteractive
2022-03-09 19:26:11 +00:00
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
build-essential \
2022-02-12 18:44:20 +00:00
libjpeg-dev \
2022-03-09 19:26:11 +00:00
libpython3-dev \
2022-02-12 18:44:20 +00:00
python3-gevent \
python3-numpy \
python3-opencv \
python3-pip \
2022-07-10 10:15:54 +00:00
git \
2022-03-09 19:26:11 +00:00
&& pip3 install \
aioboto3 \
aiohttp \
jpeg2dct \
motor \
prometheus_client \
sanic==21.6.2 \
2022-07-11 10:28:22 +00:00
sanic-json-logging \
2022-07-10 10:15:54 +00:00
git+https://github.com/Assarius/sanic-prometheus@Sanic_22 \
2022-03-09 19:26:11 +00:00
&& apt-get remove -y \
build-essential \
libjpeg-dev \
libpython3-dev \
&& apt-get autoremove -y \
2022-02-12 18:44:20 +00:00
&& apt-get clean
COPY camdetect.py /app
ENTRYPOINT /app/camdetect.py
2022-02-13 07:54:38 +00:00
EXPOSE 5000
2022-02-12 18:44:20 +00:00
ENV PYTHONUNBUFFERED=1