Last active
July 17, 2021 11:16
-
-
Save arndom/e65617b4745d82c68ec26d3c4853e90f to your computer and use it in GitHub Desktop.
Dockerfile for deploying first-order-motion-model to GCP as vm instance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nvcr.io/nvidia/cuda:10.0-cudnn7-runtime-ubuntu18.04 | |
# FROM ubuntu:latest | |
RUN DEBIAN_FRONTEND=noninteractive apt-get -qq update \ | |
&& DEBIAN_FRONTEND=noninteractive apt-get -qqy install python3-pip ffmpeg git less nano libsm6 libxext6 libxrender-dev \ | |
&& rm -rf /var/lib/apt/lists/* | |
COPY . /app/ | |
WORKDIR /app | |
RUN pip3 install --upgrade pip | |
RUN pip3 install \ | |
https://download.pytorch.org/whl/cu100/torch-1.0.0-cp36-cp36m-linux_x86_64.whl \ | |
git+https://github.com/1adrianb/face-alignment \ | |
-r requirements.txt | |
# CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 app:app | |
ENTRYPOINT [ "python3" ] | |
CMD [ "app.py" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment