Browse Source

Minimize Docker image

master
Lauri Võsandi 4 months ago committed by Lauri Võsandi
parent
commit
53ee10b92a
  1. 26
      Dockerfile

26
Dockerfile

@ -1,21 +1,29 @@ @@ -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…
Cancel
Save