This commit is contained in:
parent
a79b9f9ca2
commit
53ee10b92a
26
Dockerfile
26
Dockerfile
@ -1,21 +1,29 @@
|
||||
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 \
|
||||
RUN apt-get update \
|
||||
&& apt-get install --no-install-recommends -y \
|
||||
build-essential \
|
||||
libjpeg-dev \
|
||||
libpython3-dev \
|
||||
python3-gevent \
|
||||
python3-numpy \
|
||||
python3-opencv \
|
||||
python3-flask \
|
||||
python3-pip \
|
||||
&& 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 \
|
||||
&& 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
|
||||
|
Loading…
Reference in New Issue
Block a user