You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
637 B
30 lines
637 B
FROM ubuntu:focal |
|
WORKDIR /app |
|
ENV DEBIAN_FRONTEND=noninteractive |
|
RUN apt-get update \ |
|
&& apt-get install --no-install-recommends -y \ |
|
build-essential \ |
|
libjpeg-dev \ |
|
libpython3-dev \ |
|
python3-gevent \ |
|
python3-numpy \ |
|
python3-opencv \ |
|
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 |
|
COPY camdetect.py /app |
|
ENTRYPOINT /app/camdetect.py |
|
EXPOSE 5000 |
|
ENV PYTHONUNBUFFERED=1
|
|
|