mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 10:11:25 +08:00
b686b969cd
[dev] remove .tern-project [cloud-*] move into cloud-core/build [cloud-core] convert to launch properly via Docker
25 lines
952 B
Docker
25 lines
952 B
Docker
# This Dockerfile builds a production-ready image of K2 to be used across all
|
|
# services. See the Dockerfile documentation here:
|
|
# https://docs.docker.com/engine/reference/builder/
|
|
|
|
# Use the latest Node 6 base docker image
|
|
# https://github.com/nodejs/docker-node
|
|
FROM node:6
|
|
|
|
# Copy everything (excluding what's in .dockerignore) into an empty dir
|
|
COPY . /home
|
|
WORKDIR /home
|
|
|
|
# This installs global dependencies, then in the postinstall script, runs lerna
|
|
# bootstrap to install and link cloud-api, cloud-core, and cloud-workers
|
|
RUN npm install --production
|
|
|
|
# This uses babel to compile any es6 to stock js for plain node
|
|
RUN node packages/cloud-core/build/build-n1-cloud
|
|
|
|
# External services run on port 80. 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)
|
|
CMD packages/cloud-core/_n1cloud_docker_launcher.sh ${AWS_SERVICE_NAME}
|