Skip to content

Instantly share code, notes, and snippets.

@AlexDel
Created February 10, 2020 13:18
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 AlexDel/96f85b456a7ff08c1b55a828a903ddc9 to your computer and use it in GitHub Desktop.
Save AlexDel/96f85b456a7ff08c1b55a828a903ddc9 to your computer and use it in GitHub Desktop.
FROM nvidia/cuda:9.1-runtime-ubuntu16.04
RUN apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:jonathonf/python-3.6
RUN apt-get update
RUN apt-get install -y build-essential python3.6 python3.6-dev python3-pip python3.6-venv
RUN apt-get install -y git
# update pip
RUN python3.6 -m pip install pip --upgrade
RUN python3.6 -m pip install wheel
RUN pip3 install torch==1.2.0+cu92 torchvision==0.4.0+cu92 -f https://download.pytorch.org/whl/torch_stable.html
RUN pip install pipenv
WORKDIR /www/
COPY ./Pipfile .
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
RUN pipenv install --skip-lock --system
COPY . .
RUN chmod 755 ./entrypoint.sh
ENTRYPOINT "./entrypoint.sh"
EXPOSE 8081
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment