Minimize Docker image
continuous-integration/drone Build is failing Details

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
1 changed files with 17 additions and 9 deletions

View File

@ -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