CyCoreSystems / go-meteor

Utilities for Meteor in Go
Apache License 2.0
7 stars 0 forks source link

Why two installs? #3

Open kaihendry opened 5 years ago

kaihendry commented 5 years ago

Great project! I had a question from https://github.com/CyCoreSystems/docker-meteor/issues/62#issuecomment-477967432

Why two install lines?

RUN meteor npm install --production
RUN cd ${BUNDLE_DIR}/bundle/programs/server && npm install
Ulexus commented 5 years ago

The first installs common components for front and back ends, given what remains outside of the Meteor tool. It might be unnecessary in this case; I haven't tried it.

The second is strictly required, since it installs the necessary runtime dependencies for executing the server without the Meteor tool.