Skip to content

Instantly share code, notes, and snippets.

@ck196
Created June 1, 2018 08:57
Show Gist options
  • Save ck196/06b64f73218df36e0d8fac28407639e2 to your computer and use it in GitHub Desktop.
Save ck196/06b64f73218df36e0d8fac28407639e2 to your computer and use it in GitHub Desktop.
docker-file gpu
FROM gcr.io/tensorflow/tensorflow:latest-gpu-py3
ENV HOME_PATH=/home/ubuntu \
APP_PATH=/home/ubuntu/recognizer
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
build-essential git
RUN pip install jwcrypto==0.4.2
RUN pip install cython
WORKDIR $APP_PATH
RUN mkdir -p $APP_PATH
COPY ./ $APP_PATH
RUN pip install -r requirement.txt
COPY ./dev/.ssh /root/.ssh
RUN chmod 600 /root/.ssh/config \
&& chmod 600 /root/.ssh/id_rsa
WORKDIR $APP_PATH/darkflow
RUN python setup.py build_ext --inplace
RUN pip install .
WORKDIR $APP_PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment