Added an example for Meteor with raw documentation
This commit is contained in:
18
examples/meteor/dockerbase/Dockerfile
Normal file
18
examples/meteor/dockerbase/Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
FROM node:0.10
|
||||
MAINTAINER Christiaan Hees <christiaan@q42.nl>
|
||||
|
||||
ONBUILD WORKDIR /appsrc
|
||||
ONBUILD COPY . /appsrc
|
||||
|
||||
ONBUILD RUN curl https://install.meteor.com/ | sh && \
|
||||
meteor build ../app --directory --architecture os.linux.x86_64 && \
|
||||
rm -rf /appsrc
|
||||
# TODO rm meteor so it doesn't take space in the image?
|
||||
|
||||
ONBUILD WORKDIR /app/bundle
|
||||
|
||||
ONBUILD RUN (cd programs/server && npm install)
|
||||
EXPOSE 8080
|
||||
CMD []
|
||||
ENV PORT 8080
|
||||
ENTRYPOINT MONGO_URL=mongodb://$MONGO_SERVICE_HOST:$MONGO_SERVICE_PORT /usr/local/bin/node main.js
|
9
examples/meteor/dockerbase/README.md
Normal file
9
examples/meteor/dockerbase/README.md
Normal file
@@ -0,0 +1,9 @@
|
||||
Building the meteor-kubernetes base image
|
||||
-----------------------------------------
|
||||
|
||||
As a normal user you don't need to do this since the image is already built and pushed to Docker Hub. You can just use it as a base image. See [this example](https://github.com/Q42/meteor-gke-example/blob/master/Dockerfile).
|
||||
|
||||
To build and push the base meteor-kubernetes image:
|
||||
|
||||
docker build -t chees/meteor-kubernetes .
|
||||
docker push chees/meteor-kubernetes
|
Reference in New Issue
Block a user