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"]
RUN pip install -r /scripts/requirements.txt
を、してみてください。なぜそれは動作すると思いましたか? (それは私がそれを把握するのに役立つかもしれない) – cjm2671私はrequirements.txtをアプリケーションフォルダにコピーして、スムーズに動作しました。 – vegiops
ピルの設置ラインを取り外し、コンテナを作り、ピルの設置手順を手動で実行してください。 – vegiops