Cloud native motion detection microservice
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
camera-motion-detect/Dockerfile

33 lines
713 B

FROM ubuntu:focal
12 months ago
WORKDIR /app
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
build-essential \
12 months ago
libjpeg-dev \
libpython3-dev \
12 months ago
python3-gevent \
python3-numpy \
python3-opencv \
python3-pip \
7 months ago
git \
&& pip3 install \
aioboto3 \
aiohttp \
jpeg2dct \
motor \
prometheus_client \
sanic==21.6.2 \
7 months ago
sanic-json-logging \
7 months ago
git+https://github.com/Assarius/sanic-prometheus@Sanic_22 \
&& apt-get remove -y \
build-essential \
libjpeg-dev \
libpython3-dev \
&& apt-get autoremove -y \
12 months ago
&& apt-get clean
COPY camdetect.py /app
ENTRYPOINT /app/camdetect.py
12 months ago
EXPOSE 5000
12 months ago
ENV PYTHONUNBUFFERED=1