2016-07-07 07:22:32 +08:00
|
|
|
# Use the latest Node 6 base docker image
|
2016-07-07 06:30:35 +08:00
|
|
|
# https://github.com/nodejs/docker-node
|
|
|
|
FROM node:6
|
2016-07-07 07:22:32 +08:00
|
|
|
|
|
|
|
# Copy everything (excluding what's in .dockerignore) into an empty dir
|
2016-07-08 04:36:38 +08:00
|
|
|
COPY . /home
|
2016-07-07 07:22:32 +08:00
|
|
|
WORKDIR /home
|
|
|
|
|
2016-07-07 06:30:35 +08:00
|
|
|
RUN npm install
|
2016-07-07 07:22:32 +08:00
|
|
|
|
|
|
|
# This will do an `npm install` for each of our modules and then link them
|
|
|
|
# all together. See more about Lerna here: https://github.com/lerna/lerna
|
|
|
|
RUN node_modules/.bin/lerna bootstrap
|
|
|
|
|
|
|
|
# External services run on port 5100. Expose it.
|
|
|
|
EXPOSE 5100
|
|
|
|
|
|
|
|
# We use a start-aws command that automatically spawns the correct process
|
|
|
|
# based on environment variables (which changes instance to instance)
|
2016-07-07 06:30:35 +08:00
|
|
|
CMD [ "npm", "run", "start-aws"]
|