Custom Production Meteor App /w Docker – Build Fails on Dependecies

I am trying to rebuild simple/reliable Production Meteor Dockerfile.
It should

1.) Download Meteor

  • Integration Tests with Docker and Bitbucket pipelines
  • How to enable SSL in docker with nginx hosted in Ubuntu
  • netcat udp connection hang inside UDP conatiner
  • ECONNREFUSED 127.0.0.1:3306 to mysql container inside jenkins
  • How can I show only the allocated resources in Docker container?
  • How can I tell if I'm logged in to a private Docker registry from a script?
  • 2.) Run Meteor Build on application

    3.) Clean up source files

    4.) Remove Meteor

    5.) Install NodeJS

    6.) Run npm install on production files

    7.) Run app with forever.

    I am building this bit by bit and seem to be getting errors when I try to run meteor build.

    In debugging the Dockerfile looks like this…

    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
    

    I gives me different errors each time.

    Example 1

    => Errors while initializing project:
    
    While downloading natestrauser:font-awesome@4.6.3...:
    error: socket hang up
    

    Example 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
    

    If i build it locally on the Mac, works fine (takes ages) but works fine.

    Looks as if cant get connection, but seems random – any thoughts?

  • Simple Docker image running Apache won't start up on Centos 7.2
  • Orchestration bettween wildfly and mysql database
  • docker build fails - “cannot allocate memory”
  • How to share storage between Kubernetes pods?
  • git ssh can't access to gitlab in a docker container
  • Is it better to build and test in a container?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.