|
# Pull python 3.7 docker image |
|
FROM python:3.7 |
|
|
|
# Set environment variables |
|
ENV PYTHONDONTWRITEBYTECODE 1 |
|
ENV PYTHONUNBUFFERED 1 |
|
|
|
# Create necessary directories |
|
RUN mkdir -p /home/app/staticfiles/app/uploaded_videos/ |
|
WORKDIR /app |
|
|
|
# Install Rust and Cargo |
|
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y |
|
ENV PATH="/root/.cargo/bin:$PATH" |
|
|
|
# Install dependencies one at a time |
|
RUN pip install --upgrade pip |
|
RUN pip install cmake |
|
RUN pip install opencv-python==4.2.0.32 |
|
RUN pip install protobuf |
|
RUN pip install altair |
|
RUN pip install asgiref |
|
RUN pip install astor |
|
RUN pip install attrs |
|
RUN pip install backcall |
|
RUN pip install base58 |
|
RUN pip install bleach |
|
RUN pip install blinker |
|
RUN pip install cachetools |
|
RUN pip install certifi |
|
RUN pip install chardet |
|
RUN pip install click |
|
RUN pip install colorama |
|
RUN pip install cycler |
|
RUN pip install decorator |
|
RUN pip install defusedxml |
|
RUN pip install Django |
|
RUN pip install dlib |
|
RUN pip install docutils |
|
RUN pip install entrypoints |
|
RUN pip install enum-compat |
|
RUN pip install face-recognition |
|
RUN pip install face-recognition-models |
|
RUN pip install future |
|
RUN pip install google |
|
RUN pip install google-api-core |
|
RUN pip install google-api-python-client |
|
RUN pip install google-auth |
|
RUN pip install google-auth-httplib2 |
|
RUN pip install googleapis-common-protos |
|
RUN pip install httplib2 |
|
RUN pip install idna |
|
RUN pip install ipykernel |
|
RUN pip install ipython |
|
RUN pip install ipython-genutils |
|
RUN pip install ipywidgets |
|
RUN pip install jedi |
|
RUN pip install Jinja2 |
|
RUN pip install jmespath |
|
RUN pip install json5 |
|
RUN pip install jsonschema |
|
RUN pip install jupyter-client |
|
RUN pip install jupyter-core |
|
RUN pip install jupyterlab |
|
RUN pip install jupyterlab-server |
|
RUN pip install kiwisolver |
|
RUN pip install MarkupSafe |
|
RUN pip install matplotlib |
|
RUN pip install mistune |
|
RUN pip install nbconvert |
|
RUN pip install nbformat |
|
RUN pip install notebook |
|
RUN pip install numpy |
|
RUN pip install packaging |
|
RUN pip install pandas |
|
RUN pip install pandocfilters |
|
RUN pip install parso |
|
RUN pip install pathtools |
|
RUN pip install pickleshare |
|
RUN pip install Pillow |
|
RUN pip install prometheus-client |
|
RUN pip install prompt-toolkit |
|
RUN pip install pyasn1 |
|
RUN pip install pyasn1-modules |
|
RUN pip install pycodestyle |
|
RUN pip install pydeck |
|
RUN pip install Pygments |
|
RUN pip install pyparsing |
|
RUN pip install pyrsistent |
|
RUN pip install python-dateutil |
|
RUN pip install pytz |
|
RUN pip install pywinpty |
|
RUN pip install PyYAML |
|
RUN pip install pyzmq |
|
RUN pip install requests |
|
RUN pip install rsa |
|
RUN pip install s3transfer |
|
RUN pip install Send2Trash |
|
RUN pip install six |
|
RUN pip install soupsieve |
|
RUN pip install sqlparse |
|
RUN pip install terminado |
|
RUN pip install testpath |
|
RUN pip install toml |
|
RUN pip install toolz |
|
RUN pip install torch |
|
RUN pip install torchvision |
|
RUN pip install tornado |
|
RUN pip install traitlets |
|
RUN pip install tzlocal |
|
RUN pip install uritemplate |
|
RUN pip install urllib3 |
|
RUN pip install validators |
|
RUN pip install watchdog |
|
RUN pip install wcwidth |
|
RUN pip install webencodings |
|
RUN pip install widgetsnbextension |
|
|
|
# Copy application files |
|
COPY . /app |
|
RUN python manage.py collectstatic --noinput |
|
RUN pip install gunicorn |
|
|
|
# Create uploaded videos directory |
|
RUN mkdir -p /app/uploaded_videos /app/uploaded_videos/ |
|
|
|
# Expose volume and set entry point |
|
VOLUME /app/run/ |
|
ENTRYPOINT ["/app/bin/gunicorn_start.sh"] |
|
|