forked from pyronear/pyro-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (24 loc) · 822 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM python:3.8.16-slim
# set environment variables
ENV PYTHONPATH "${PYTHONPATH}:/usr/src/app"
ENV PATH /usr/local/bin:$PATH
ENV LANG C.UTF-8
ENV PYTHONUNBUFFERED 1
ENV PYTHONDONTWRITEBYTECODE 1
# set work directory
WORKDIR /usr/src/app
COPY ./pyproject.toml /tmp/pyproject.toml
COPY ./README.md /tmp/README.md
COPY ./setup.py /tmp/setup.py
COPY ./src/requirements.txt /tmp/requirements.txt
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y\
&& pip install --upgrade pip setuptools wheel \
&& pip install -r /tmp/requirements.txt \
&& pip cache purge \
&& rm -rf /root/.cache/pip
COPY ./pyroengine /tmp/pyroengine
RUN pip install -e /tmp/. \
&& pip cache purge \
&& rm -rf /root/.cache/pip
COPY ./src/run.py /usr/src/app/run.py
COPY ./src/capture.py /usr/src/app/capture.py