Skip to content

Instantly share code, notes, and snippets.

@siakon89
Created June 18, 2018 16:20
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 siakon89/00833dd72c08891510b292b947915438 to your computer and use it in GitHub Desktop.
Save siakon89/00833dd72c08891510b292b947915438 to your computer and use it in GitHub Desktop.
FROM nvidia/cuda:9.0-runtime
RUN apt-get update && \
apt-get -y install build-essential libopencv-dev libopenblas-dev libjemalloc-dev libgfortran3 \
python-dev python3-dev python3-pip wget curl
COPY cifar_10_keras.py /opt/program/train
RUN chmod +x /opt/program/train
RUN mkdir /root/.keras
COPY keras.json /root/.keras/
RUN pip3 install mxnet-cu90 --upgrade --pre && \
pip3 install keras-mxnet --upgrade --pre
RUN rm -rf /var/lib/apt/lists/*
RUN rm -rf /root/.cache
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/lib"
ENV PATH="/opt/program:${PATH}"
WORKDIR /opt/program
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment