Dockerfile 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. # Copyright 2016 The Kubernetes Authors.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. FROM node:0.10
  15. MAINTAINER Christiaan Hees <christiaan@q42.nl>
  16. ONBUILD WORKDIR /appsrc
  17. ONBUILD COPY . /appsrc
  18. ONBUILD RUN curl https://install.meteor.com/ | sh && \
  19. meteor build ../app --directory --architecture os.linux.x86_64 && \
  20. rm -rf /appsrc
  21. # TODO rm meteor so it doesn't take space in the image?
  22. ONBUILD WORKDIR /app/bundle
  23. ONBUILD RUN (cd programs/server && npm install)
  24. EXPOSE 8080
  25. CMD []
  26. ENV PORT 8080
  27. ENTRYPOINT MONGO_URL=mongodb://$MONGO_SERVICE_HOST:$MONGO_SERVICE_PORT /usr/local/bin/node main.js