Lauri Võsandi
a1699fa380
All checks were successful
continuous-integration/drone Build is passing
* Implement multi queue pipelining * Implement screenshot upload to S3 * Implement event insertion to Mongo * Add SIGUSR1 handler to manually trigger screenshots
23 lines
617 B
Docker
23 lines
617 B
Docker
FROM ubuntu
|
|
WORKDIR /app
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
RUN apt-get update && apt-get install -y \
|
|
gstreamer1.0-libav \
|
|
gstreamer1.0-plugins-bad \
|
|
gstreamer1.0-plugins-base \
|
|
gstreamer1.0-plugins-good \
|
|
gstreamer1.0-plugins-ugly \
|
|
gstreamer1.0-tools \
|
|
libjpeg-dev \
|
|
python3-gevent \
|
|
python3-numpy \
|
|
python3-opencv \
|
|
python3-flask \
|
|
python3-pip \
|
|
&& apt-get clean
|
|
RUN pip3 install aioboto3 prometheus_client pymongo==3.12.2 aiohttp jpeg2dct sanic==21.6.2 sanic_prometheus motor
|
|
COPY camdetect.py /app
|
|
ENTRYPOINT /app/camdetect.py
|
|
EXPOSE 5000
|
|
ENV PYTHONUNBUFFERED=1
|