|
|
|
FROM python:3.7 |
|
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE 1 |
|
ENV PYTHONUNBUFFERED 1 |
|
|
|
|
|
RUN mkdir -p /home/app/staticfiles/app/uploaded_videos/ |
|
WORKDIR /app |
|
|
|
|
|
RUN apt-get update && apt-get install -y \ |
|
build-essential \ |
|
cmake \ |
|
g++ \ |
|
wget \ |
|
unzip \ |
|
libopenblas-dev \ |
|
liblapack-dev \ |
|
libx11-dev && \ |
|
apt-get clean |
|
|
|
|
|
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y |
|
ENV PATH="/root/.cargo/bin:$PATH" |
|
|
|
|
|
RUN pip install --upgrade pip |
|
RUN pip install opencv-python==4.2.0.32 |
|
RUN pip install protobuf |
|
|
|
|
|
RUN pip install dlib==19.24.2 |
|
|
|
|
|
RUN pip install altair asgiref astor attrs backcall base58 bleach blinker cachetools certifi chardet click colorama cycler decorator defusedxml Django docutils entrypoints enum-compat face-recognition face-recognition-models future google google-api-core google-api-python-client google-auth google-auth-httplib2 googleapis-common-protos httplib2 idna ipykernel ipython ipython-genutils ipywidgets jedi Jinja2 jmespath json5 jsonschema jupyter-client jupyter-core jupyterlab jupyterlab-server kiwisolver MarkupSafe matplotlib mistune nbconvert nbformat notebook numpy packaging pandas pandocfilters parso pathtools pickleshare Pillow prometheus-client prompt-toolkit pyasn1 pyasn1-modules pycodestyle pydeck Pygments pyparsing pyrsistent python-dateutil pytz pywinpty PyYAML pyzmq requests rsa s3transfer Send2Trash six soupsieve sqlparse terminado testpath toml toolz torch torchvision tornado traitlets tzlocal uritemplate urllib3 validators watchdog wcwidth webencodings widgetsnbextension |
|
|
|
|
|
COPY . /app |
|
RUN python manage.py collectstatic --noinput |
|
RUN pip install gunicorn |
|
|
|
|
|
RUN mkdir -p /app/uploaded_videos /app/uploaded_videos/ |
|
|
|
|
|
VOLUME /app/run/ |
|
ENTRYPOINT ["/app/bin/gunicorn_start.sh"] |
|
|