Docker image not building
I'm unable to build the docker image.
Silvios-MacBook-Pro-Ascora:text_transformer silviokennecke$ docker build .
Sending build context to Docker daemon 6.437MB
Step 1/7 : FROM python:3.6-slim
Get https://registry-1.docker.io/v2/library/python/manifests/3.6-slim: net/http: TLS handshake timeout
Silvios-MacBook-Pro-Ascora:text_transformer silviokennecke$ docker build .
Sending build context to Docker daemon 6.437MB
Step 1/7 : FROM python:3.6-slim
3.6-slim: Pulling from library/python
8559a31e96f4: Pull complete
62e60f3ef11e: Pull complete
f024dcd4fd42: Pull complete
c186acc4b86a: Pull complete
09557bd0cf27: Pull complete
Digest: sha256:461e2f5d4e9e6a703d271e0472e4374498229ccaa4a92784adfbae02300801ec
Status: Downloaded newer image for python:3.6-slim
---> 42ab29dc5406
Step 2/7 : RUN apt-get update && apt-get -y dist-upgrade
---> Running in 0bfa3700e4a0
Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:2 http://security.debian.org/debian-security buster/updates/main amd64 Packages [208 kB]
Get:3 http://deb.debian.org/debian buster InRelease [121 kB]
Get:4 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 Packages [7905 kB]
Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [7868 B]
Fetched 8360 kB in 4s (1901 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Removing intermediate container 0bfa3700e4a0
---> 346fc645cb7b
Step 3/7 : RUN pip install flair
---> Running in 04ae1514cdbb
Collecting flair
Downloading flair-0.5-py3-none-any.whl (334 kB)
Collecting transformers>=2.10.0
Downloading transformers-3.0.0-py3-none-any.whl (754 kB)
Collecting pytest>=5.3.2
Downloading pytest-5.4.3-py3-none-any.whl (248 kB)
Collecting gensim>=3.4.0
Downloading gensim-3.8.3-cp36-cp36m-manylinux1_x86_64.whl (24.2 MB)
Collecting sqlitedict>=1.6.0
Downloading sqlitedict-1.6.0.tar.gz (29 kB)
Collecting hyperopt>=0.1.1
Downloading hyperopt-0.2.4-py2.py3-none-any.whl (964 kB)
Collecting deprecated>=1.2.4
Downloading Deprecated-1.2.10-py2.py3-none-any.whl (8.7 kB)
Collecting tabulate
Downloading tabulate-0.8.7-py3-none-any.whl (24 kB)
Collecting scikit-learn>=0.21.3
Downloading scikit_learn-0.23.1-cp36-cp36m-manylinux1_x86_64.whl (6.8 MB)
Collecting torch>=1.1.0
Downloading torch-1.5.1-cp36-cp36m-manylinux1_x86_64.whl (753.2 MB)
Collecting matplotlib>=2.2.3
Downloading matplotlib-3.2.2-cp36-cp36m-manylinux1_x86_64.whl (12.4 MB)
Collecting python-dateutil>=2.6.1
Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting mpld3==0.3
Downloading mpld3-0.3.tar.gz (788 kB)
Collecting langdetect
Downloading langdetect-1.0.8.tar.gz (981 kB)
Collecting segtok>=1.5.7
Downloading segtok-1.5.10.tar.gz (25 kB)
Collecting bpemb>=0.2.9
Downloading bpemb-0.3.0-py3-none-any.whl (19 kB)
Collecting regex
Downloading regex-2020.6.8-cp36-cp36m-manylinux2010_x86_64.whl (660 kB)
Collecting tqdm>=4.26.0
Downloading tqdm-4.47.0-py2.py3-none-any.whl (66 kB)
Collecting numpy
Downloading numpy-1.19.0-cp36-cp36m-manylinux2010_x86_64.whl (14.6 MB)
Collecting filelock
Downloading filelock-3.0.12-py3-none-any.whl (7.6 kB)
Collecting dataclasses; python_version < "3.7"
Downloading dataclasses-0.7-py3-none-any.whl (18 kB)
Collecting tokenizers==0.8.0-rc4
Downloading tokenizers-0.8.0rc4-cp36-cp36m-manylinux1_x86_64.whl (3.0 MB)
Collecting packaging
Downloading packaging-20.4-py2.py3-none-any.whl (37 kB)
Collecting sentencepiece
Downloading sentencepiece-0.1.91-cp36-cp36m-manylinux1_x86_64.whl (1.1 MB)
Collecting sacremoses
Downloading sacremoses-0.0.43.tar.gz (883 kB)
Collecting requests
Downloading requests-2.24.0-py2.py3-none-any.whl (61 kB)
Collecting py>=1.5.0
Downloading py-1.9.0-py2.py3-none-any.whl (99 kB)
Collecting wcwidth
Downloading wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Collecting more-itertools>=4.0.0
Downloading more_itertools-8.4.0-py3-none-any.whl (43 kB)
Collecting attrs>=17.4.0
Downloading attrs-19.3.0-py2.py3-none-any.whl (39 kB)
Collecting importlib-metadata>=0.12; python_version < "3.8"
Downloading importlib_metadata-1.7.0-py2.py3-none-any.whl (31 kB)
Collecting pluggy<1.0,>=0.12
Downloading pluggy-0.13.1-py2.py3-none-any.whl (18 kB)
Collecting smart-open>=1.8.1
Downloading smart_open-2.1.0.tar.gz (116 kB)
Collecting six>=1.5.0
Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting scipy>=0.18.1
Downloading scipy-1.5.0-cp36-cp36m-manylinux1_x86_64.whl (25.9 MB)
Collecting cloudpickle
Downloading cloudpickle-1.5.0-py3-none-any.whl (22 kB)
Collecting future
Downloading future-0.18.2.tar.gz (829 kB)
Collecting networkx>=2.2
Downloading networkx-2.4-py3-none-any.whl (1.6 MB)
Collecting wrapt<2,>=1.10
Downloading wrapt-1.12.1.tar.gz (27 kB)
Collecting threadpoolctl>=2.0.0
Downloading threadpoolctl-2.1.0-py3-none-any.whl (12 kB)
Collecting joblib>=0.11
Downloading joblib-0.16.0-py3-none-any.whl (300 kB)
Collecting kiwisolver>=1.0.1
Downloading kiwisolver-1.2.0-cp36-cp36m-manylinux1_x86_64.whl (88 kB)
Collecting cycler>=0.10
Downloading cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1
Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting click
Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
Downloading urllib3-1.25.9-py2.py3-none-any.whl (126 kB)
Collecting idna<3,>=2.5
Downloading idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting certifi>=2017.4.17
Downloading certifi-2020.6.20-py2.py3-none-any.whl (156 kB)
Collecting chardet<4,>=3.0.2
Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting zipp>=0.5
Downloading zipp-3.1.0-py3-none-any.whl (4.9 kB)
Collecting boto
Downloading boto-2.49.0-py2.py3-none-any.whl (1.4 MB)
Collecting boto3
Downloading boto3-1.14.16-py2.py3-none-any.whl (128 kB)
Collecting decorator>=4.3.0
Downloading decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
Collecting jmespath<1.0.0,>=0.7.1
Downloading jmespath-0.10.0-py2.py3-none-any.whl (24 kB)
Collecting s3transfer<0.4.0,>=0.3.0
Downloading s3transfer-0.3.3-py2.py3-none-any.whl (69 kB)
Collecting botocore<1.18.0,>=1.17.16
Downloading botocore-1.17.16-py2.py3-none-any.whl (6.3 MB)
Collecting docutils<0.16,>=0.10
Downloading docutils-0.15.2-py3-none-any.whl (547 kB)
Building wheels for collected packages: sqlitedict, mpld3, langdetect, segtok, sacremoses, smart-open, future, wrapt
Building wheel for sqlitedict (setup.py): started
Building wheel for sqlitedict (setup.py): finished with status 'done'
Created wheel for sqlitedict: filename=sqlitedict-1.6.0-py3-none-any.whl size=14688 sha256=6d02bf3f003018672cefd4061603ff465305c284fa55fcd2ac9c488e0a6bc14c
Stored in directory: /root/.cache/pip/wheels/7d/44/14/5dc41bad7fa0e87462127d2beba1eaae0c180c98f1024a31db
Building wheel for mpld3 (setup.py): started
Building wheel for mpld3 (setup.py): finished with status 'done'
Created wheel for mpld3: filename=mpld3-0.3-py3-none-any.whl size=116678 sha256=5bcae92cb3d0037c335040225bc00fe5e8bbb775cc9913a02ee5fa24f6aa54dd
Stored in directory: /root/.cache/pip/wheels/c0/74/c9/ac92f0c4c9eb137d440e86c2822aba0b96b63e608dd5737164
Building wheel for langdetect (setup.py): started
Building wheel for langdetect (setup.py): finished with status 'done'
Created wheel for langdetect: filename=langdetect-1.0.8-py3-none-any.whl size=993191 sha256=655d87874a04e21f0b252a63aa2cb4d78ffe1da3d4cd44776f4370a30f9464c3
Stored in directory: /root/.cache/pip/wheels/53/88/5d/b239dc55d773b01fdd2059606b1a8f4b64548848b8f6e381c3
Building wheel for segtok (setup.py): started
Building wheel for segtok (setup.py): finished with status 'done'
Created wheel for segtok: filename=segtok-1.5.10-py3-none-any.whl size=25019 sha256=ccece47d79702cef1fdd1563c7bb6eb15944d8ae86eebabf43e01ccdb02691e2
Stored in directory: /root/.cache/pip/wheels/1d/83/ac/c2a4c7b2b759f73532a789561b025d9887bf641bdd676f77bb
Building wheel for sacremoses (setup.py): started
Building wheel for sacremoses (setup.py): finished with status 'done'
Created wheel for sacremoses: filename=sacremoses-0.0.43-py3-none-any.whl size=893259 sha256=85a416862254e4ab6c33f9abb5e11976d5443d9d59cf53383ed6b5c8e4680437
Stored in directory: /root/.cache/pip/wheels/49/25/98/cdea9c79b2d9a22ccc59540b1784b67f06b633378e97f58da2
Building wheel for smart-open (setup.py): started
Building wheel for smart-open (setup.py): finished with status 'done'
Created wheel for smart-open: filename=smart_open-2.1.0-py3-none-any.whl size=110317 sha256=0cc7717305900d9d75f7b8de88a645195b8768af28723e521bb1461a0440f06c
Stored in directory: /root/.cache/pip/wheels/a4/9b/d5/85705a7ab783cd6f7bd718f01d3b1396272f30044e3c36401a
Building wheel for future (setup.py): started
Building wheel for future (setup.py): finished with status 'done'
Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491058 sha256=86c0bd4ac9f3dd7f310c3191bd78e9aa28538694a3d3c4c208f8055ddc5c8fe0
Stored in directory: /root/.cache/pip/wheels/6e/9c/ed/4499c9865ac1002697793e0ae05ba6be33553d098f3347fb94
Building wheel for wrapt (setup.py): started
Building wheel for wrapt (setup.py): finished with status 'done'
Created wheel for wrapt: filename=wrapt-1.12.1-py3-none-any.whl size=19553 sha256=69a55912b2b8906acead2df538028b9588244bc231ef288b3a02ec1b3e29e271
Stored in directory: /root/.cache/pip/wheels/32/42/7f/23cae9ff6ef66798d00dc5d659088e57dbba01566f6c60db63
Successfully built sqlitedict mpld3 langdetect segtok sacremoses smart-open future wrapt
Installing collected packages: numpy, filelock, tqdm, dataclasses, tokenizers, regex, pyparsing, six, packaging, sentencepiece, click, joblib, sacremoses, urllib3, idna, certifi, chardet, requests, transformers, py, wcwidth, more-itertools, attrs, zipp, importlib-metadata, pluggy, pytest, boto, jmespath, docutils, python-dateutil, botocore, s3transfer, boto3, smart-open, scipy, gensim, sqlitedict, cloudpickle, future, decorator, networkx, hyperopt, wrapt, deprecated, tabulate, threadpoolctl, scikit-learn, torch, kiwisolver, cycler, matplotlib, mpld3, langdetect, segtok, bpemb, flair
Successfully installed attrs-19.3.0 boto-2.49.0 boto3-1.14.16 botocore-1.17.16 bpemb-0.3.0 certifi-2020.6.20 chardet-3.0.4 click-7.1.2 cloudpickle-1.5.0 cycler-0.10.0 dataclasses-0.7 decorator-4.4.2 deprecated-1.2.10 docutils-0.15.2 filelock-3.0.12 flair-0.5 future-0.18.2 gensim-3.8.3 hyperopt-0.2.4 idna-2.10 importlib-metadata-1.7.0 jmespath-0.10.0 joblib-0.16.0 kiwisolver-1.2.0 langdetect-1.0.8 matplotlib-3.2.2 more-itertools-8.4.0 mpld3-0.3 networkx-2.4 numpy-1.19.0 packaging-20.4 pluggy-0.13.1 py-1.9.0 pyparsing-2.4.7 pytest-5.4.3 python-dateutil-2.8.1 regex-2020.6.8 requests-2.24.0 s3transfer-0.3.3 sacremoses-0.0.43 scikit-learn-0.23.1 scipy-1.5.0 segtok-1.5.10 sentencepiece-0.1.91 six-1.15.0 smart-open-2.1.0 sqlitedict-1.6.0 tabulate-0.8.7 threadpoolctl-2.1.0 tokenizers-0.8.0rc4 torch-1.5.1 tqdm-4.47.0 transformers-3.0.0 urllib3-1.25.9 wcwidth-0.2.5 wrapt-1.12.1 zipp-3.1.0
Removing intermediate container 04ae1514cdbb
---> 4829fe103b01
Step 4/7 : COPY data /opt/data
---> cb0f03fbda83
Step 5/7 : COPY model /opt/model
COPY failed: stat /var/lib/docker/tmp/docker-builder517282500/model: no such file or directory