Which docker image do you use to run meteor app?

Hi everyone,

I have been using multistage dockerfile that includes building meteor with —production flag and later copy build files to another container to end up with smaller docker image.

I haven’t been lucky using alpine based image as I keep running into issue with bcrypt not defined error even tho it’s installed it via npm.

My application works fine if I change the image to use official Nodejs image however the size would be over 500MB for 80MB app

Here’s the Dockerfile I use (albiet updated to Node 12.16.1 and Meteor 1.10.2). The second stage is node-alpine and it works great. Perhaps you’re not installing server npm dependencies in the second image? See line 58 here.