camera-motion-detect/Dockerfile

31 lines
637 B
Docker
Raw 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-03-09 19:26:11 +00:00
&& pip3 install \
aioboto3 \
aiohttp \
jpeg2dct \
motor \
prometheus_client \
sanic==21.6.2 \
sanic_prometheus \
&& 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