mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
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
|
||||
Reference in New Issue
Block a user