camera-motion-detect/Dockerfile
Lauri Võsandi 92b6d74ea1
Some checks failed
ci/woodpecker/push/build/1 Pipeline was successful
ci/woodpecker/push/build/2 Pipeline failed
ci/woodpecker/push/manifest unknown status
ci/woodpecker/manual/build/2 Pipeline failed
ci/woodpecker/manual/build/1 Pipeline failed
ci/woodpecker/manual/manifest unknown status
Move to Woodpecker
2024-08-15 19:54:38 +03:00

33 lines
735 B
Docker

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