2017-07-26 6 views
0

非ピップPythonパッケージ、私のように私のrequirements.txtに書いたドッカービルドが、私はいくつかの非PIPパッケージを持っている

をインストールするときにハングアップするようです私のローカルホストでOKを動作させるが、ドッカーのビルドを行うと、私はこれを得る:

Collecting git+https://github.com/manahl/arctic.git (from -r scripts/requirements.txt (line 11)) 
│ Cloning https://github.com/manahl/arctic.git to /tmp/pip-1gw7spz2-build 

それはちょうどハングするようだ。それは数分後に静かに動きますが、まったく動作していないように見えます。 gitベースの依存関係ごとにこれを行うようです。

私は間違っていますか?

Dockerfile:scriptsフォルダをカレントディレクトリに存在する

FROM python:3.6.1                                                                 

# Set the working directory to /app                                                            
WORKDIR /app                                                                  

# Copy the current directory contents into the container at /app                                                     
ADD . /app                                                                  

RUN apt-get update && apt-get install -y \                                                          
    git\                                                                   
    build-essential                                                                

# Install any needed packages specified in requirements.txt                                                      
RUN pip install -r scripts/requirements.txt                                                          

# Run app.py when the container launches                                                           
CMD ["python", "scheduler.py"] 

答えて

0

場合はそれだけでrequirements.txt見つけることができない場合には動作しませんでした

+0

RUN pip install -r /scripts/requirements.txtを、してみてください。なぜそれは動作すると思いましたか? (それは私がそれを把握するのに役立つかもしれない) – cjm2671

+0

私はrequirements.txtをアプリケーションフォルダにコピーして、スムーズに動作しました。 – vegiops

+0

ピルの設置ラインを取り外し、コンテナを作り、ピルの設置手順を手動で実行してください。 – vegiops

関連する問題