在docker容器中安装anaconda时出错

时间:2017-10-02 02:31:08

标签: python django docker

我对码头工作者来说很新。我正在尝试使用docker容器将Web应用程序(由Django制作)部署到云端 但是,当我尝试按照Dockerfile构建时,我收到了错误

  

使用Anaconda API:https://api.anaconda.org
  ResolvePackageNotFound:
    -python 3.5.3 3

FROM ubuntu:16.04

# package install & update 
RUN apt-get update && apt-get -y upgrade
RUN apt-get -y install build-essential
RUN apt-get -y install git vim curl wget
RUN apt-get -y install python-dev \
                       libmysqlclient-dev


FROM continuumio/anaconda3
ENTRYPOINT [ "/bin/bash", "-c" ]

ADD env.yml /tmp/env.yml
WORKDIR /tmp

RUN [ "conda", "env", "create", "-f", "env.yml" ]


#ADD . /code/

RUN [ "/bin/bash", "-c", "source activate BAUES" ]

#RUN [ "/bin/bash", "-c", "python manage.py migrate" ]

#RUN [ "/bin/bash", "-c", "python manage.py runserver" ]  

有谁知道我收到此错误的原因?

谢谢。

0 个答案:

没有答案