2 Star 0 Fork 0

mirrors_maxpumperla/betago

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 2.00 KB
一键复制 编辑 原始数据 按行查看 历史
Max Pumperla 提交于 2017-04-05 11:09 . dockerize demo
# Adapted from https://github.com/gw0/docker-keras-full
# docker-debian-cuda - Debian 9 with CUDA Toolkit
FROM gw000/keras:2.0.2-gpu
MAINTAINER gw0 [http://gw.tnode.com/] <gw.2017@ena.one>
# install py2-th-cpu (Python 2, Theano, CPU/GPU)
ARG THEANO_VERSION=0.9.0
ENV THEANO_FLAGS='device=cpu,floatX=float32'
RUN pip --no-cache-dir install git+https://github.com/Theano/Theano.git@rel-${THEANO_VERSION}
# install py3-tf-cpu/gpu (Python 3, TensorFlow, CPU/GPU)
RUN apt-get update -qq \
&& apt-get install --no-install-recommends -y \
# install python 3
python3 \
python3-dev \
python3-pip \
python3-setuptools \
python3-virtualenv \
pkg-config \
# requirements for numpy
libopenblas-base \
python3-numpy \
python3-scipy \
# requirements for keras
python3-h5py \
python3-yaml \
python3-pydot \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ARG TENSORFLOW_VERSION=1.0.1
ARG TENSORFLOW_DEVICE=gpu
ARG TENSORFLOW_APPEND=_gpu
RUN pip3 --no-cache-dir install https://storage.googleapis.com/tensorflow/linux/${TENSORFLOW_DEVICE}/tensorflow${TENSORFLOW_APPEND}-${TENSORFLOW_VERSION}-cp35-cp35m-linux_x86_64.whl
ARG KERAS_VERSION=2.0.2
ENV KERAS_BACKEND=tensorflow
RUN pip3 --no-cache-dir install git+https://github.com/fchollet/keras.git@${KERAS_VERSION}
# install py3-th-cpu/gpu (Python 3, Theano, CPU/GPU)
ARG THEANO_VERSION=0.9.0
ENV THEANO_FLAGS='device=cpu,floatX=float32'
RUN pip3 --no-cache-dir install git+https://github.com/Theano/Theano.git@rel-${THEANO_VERSION}
# install additional debian packages
RUN apt-get update -qq \
&& apt-get install --no-install-recommends -y \
# system tools
less \
procps \
vim-tiny \
# build dependencies
build-essential \
libffi-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Copy application to container
RUN mkdir -p app
WORKDIR /app
COPY . /app
# Install requirements
RUN pip install -r requirements.txt
# Expose default port and start app
EXPOSE 8080
ENTRYPOINT ["python", "run_demo.py"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_maxpumperla/betago.git
git@gitee.com:mirrors_maxpumperla/betago.git
mirrors_maxpumperla
betago
betago
master

搜索帮助