Skip to content

Instantly share code, notes, and snippets.

@arndom
Last active July 17, 2021 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arndom/e65617b4745d82c68ec26d3c4853e90f to your computer and use it in GitHub Desktop.
Save arndom/e65617b4745d82c68ec26d3c4853e90f to your computer and use it in GitHub Desktop.
Dockerfile for deploying first-order-motion-model to GCP as vm instance
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