We deploy our app now using meteor 1.4.2.3 via two Docker images. We run meteor build prior to running Docker (to a directory, not a tarball). One of the problems with the old Docker images is that they’re based on Node 0.10.xx while Meteor 1.4.x is based on Node 4.x.x.
This is an example of one of the Docker files we use. Help is in the comments:
FROM node:4.6.2-slim
This Dockerfile lives where the meteor bundle has been built to a directory,
not a tarball.
e.g. If you run ‘meteor build …/output/base --directory --architecture=os.linux.x86_64’
then the Dockerfile lives in …/output/base
Bundle app source into the image
COPY . /opt/meteor
Install app dependencies (not sure if the export LINK=g++ is needed, but this works)
RUN export LINK=g++ && (cd /opt/meteor/dist/bundle/programs/server && npm install)
I suppose reason for this error is outdated kernel, because I managed to succesfully create an image and container on another computer. So - the problem was on my side.