jshimko / meteor-launchpad

A base Docker image for Meteor applications.
https://hub.docker.com/r/jshimko/meteor-launchpad/
MIT License
276 stars 152 forks source link

apt-get install from launchpad.conf #40

Closed JasonDeArte closed 7 years ago

JasonDeArte commented 7 years ago

This update extends the existing launchpad.conf file to allow the user to install additional apt-get packages that their npm dependencies require

For example: if a user of nodegit requires libssl to be installed before the application is built, they can update their local launchpad.conf with INSTALL_APTGET_PACKAGES=libssl-dev

jshimko commented 7 years ago

I'm out of the country this week, but I'll take a closer look at this next week when I'm back home.

Thanks!

jshimko commented 7 years ago

Version 1.3.0 just added this functionality. You can set APT_GET_INSTALL in your launchpad.conf...

APT_GET_INSTALL="libssl-dev curl anything else"

or you can use Docker build args...

docker build \
  --build-arg APT_GET_INSTALL="libssl-dev curl anything else" \
  --build-arg INSTALL_MONGO=true \
  --build-arg NODE_VERSION=4.7.2 \
  -t myorg/myapp:latest .

See the readme for more detail.

https://github.com/jshimko/meteor-launchpad#build-options

Thanks for the contribution!