自定义生产meteor应用程序/docker – 构build失败的依赖
我正在尝试重build简单/可靠的Production Meteor Dockerfile。 这应该
1.)下载meteor
2.)运行meteorbuild立在应用程序上
3.)清理源文件
4.)移除meteor
5.)安装NodeJS
6.)在生产文件上运行npm install
7.)永远运行应用程序。
当我尝试运行meteorbuild造时,我正在构build这个一点一点的问题,似乎正在出错。
在debuggingDockerfile看起来像这样…
FROM ubuntu:14.04 MAINTAINER Matt H RUN mkdir /home/myApp WORKDIR /home/myApp ADD src /home/myApp # Do basic updates RUN apt-get update -q && apt-get clean # Get curl in order to download curl RUN apt-get install curl -y # Install Meteor RUN (curl https://install.meteor.com/ | sh) RUN mkdir /home/app # Build It RUN cd /home/myApp/app \ && meteor build \ /home/app \ --directory \ --architecture os.linux.x86_64 \ --server-only
我每次都给我不同的错误。
例1
=> Errors while initializing project: While downloading natestrauser:font-awesome@4.6.3...: error: socket hang up
例2
=> Errors while initializing project: While downloading es5-shim@4.5.13...: error: ETIMEDOUT While downloading fourquet:jquery-toast@2.1.2_1...: error: ETIMEDOUT While downloading iron:controller@1.0.12...: error: ETIMEDOUT While downloading less@2.6.4...: error: ETIMEDOUT While downloading matb33:collection-hooks@0.8.1...: error: ETIMEDOUT
如果我在Mac本地构build它,工作正常(需要时间),但工作正常。
看起来好像不能连接,但似乎是随机的 – 任何想法?