Add the following to a Dockerfile
in the root of your Reaction Commerce project:
FROM reactioncommerce/base:latest
Then you can build the image with:
docker build -t reactioncommerce/reaction:latest .
Use docker-compose to run the app. A demo docker-compose file is included in the Reaction repo.
Run this command to start the app:
docker-compose -f docker-compose-demo.yml up
This base image supports setting custom build options that let you modify what gets installed. You can use Docker build args to accomplish this.
To change the version of Meteor that gets installed, you can specify a version as below:
docker build \
--build-arg METEOR_VERSION=1.4.2 \
-t myorg/myapp:latest .