Minimize Docker image
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
Lauri Võsandi 2022-03-09 21:26:11 +02:00 committed by Lauri Võsandi
parent a79b9f9ca2
commit 53ee10b92a

View File

@ -1,21 +1,29 @@
FROM ubuntu FROM ubuntu
WORKDIR /app WORKDIR /app
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \ RUN apt-get update \
gstreamer1.0-libav \ && apt-get install --no-install-recommends -y \
gstreamer1.0-plugins-bad \ build-essential \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-ugly \
gstreamer1.0-tools \
libjpeg-dev \ libjpeg-dev \
libpython3-dev \
python3-gevent \ python3-gevent \
python3-numpy \ python3-numpy \
python3-opencv \ python3-opencv \
python3-flask \
python3-pip \ 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 && 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 COPY camdetect.py /app
ENTRYPOINT /app/camdetect.py ENTRYPOINT /app/camdetect.py
EXPOSE 5000 EXPOSE 5000