1 Star 0 Fork 0

上研DI-陈赜(ze)/arena

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile.notebook.cpu 1.44 KB
一键复制 编辑 原始数据 按行查看 历史
# ARG BASE_IMAGE=registry.aliyuncs.com/kubeflow-images-public/tensorflow-1.12.0-notebook:v0.4.0
ARG BASE_IMAGE=tensorflow/tensorflow:1.12.0-devel-py3
ARG USER=root
FROM golang:1.10-stretch as build
RUN mkdir -p /go/src/github.com/kubeflow/arena
WORKDIR /go/src/github.com/kubeflow/arena
COPY . .
RUN make
RUN wget https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-linux-amd64.tar.gz && \
tar -xvf helm-v2.14.1-linux-amd64.tar.gz && \
mv linux-amd64/helm /usr/local/bin/helm && \
chmod u+x /usr/local/bin/helm
ENV K8S_VERSION v1.11.2
RUN curl -o /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/${K8S_VERSION}/bin/linux/amd64/kubectl && chmod +x /usr/local/bin/kubectl
FROM $BASE_IMAGE
COPY --from=build /go/src/github.com/kubeflow/arena/bin/arena /usr/local/bin/arena
COPY --from=build /usr/local/bin/helm /usr/local/bin/arena-helm
COPY --from=build /go/src/github.com/kubeflow/arena/charts /charts
COPY --from=build /usr/local/bin/kubectl /usr/local/bin/kubectl
RUN chmod a+rx /usr/local/bin/* && \
chmod a+rx -R /charts
RUN apt-get update && \
apt-get install bash-completion tree -y && \
echo "source /etc/bash_completion" >> /etc/bash.bashrc && \
echo "source <(arena completion bash)" >> /etc/bash.bashrc
USER $USER
ADD jupyter/run_jupyter.sh /run_jupyter.sh
ADD jupyter/jupyter_notebook_config.py /jupyter_notebook_config.py
RUN chmod 755 /run_jupyter.sh
CMD [ "/run_jupyter.sh"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chenze007/arena.git
git@gitee.com:chenze007/arena.git
chenze007
arena
arena
master

搜索帮助