## BUILDING ## (from project root directory) ## $ docker build -t node-js-for-bitnami-bitnami-docker-express . ## ## RUNNING ## $ docker run -p 3000:3000 node-js-for-bitnami-bitnami-docker-express ## ## CONNECTING ## Lookup the IP of your active docker host using: ## $ docker-machine ip $(docker-machine active) ## Connect to the container at DOCKER_IP:3000 ## replacing DOCKER_IP for the IP of your active docker host FROM gcr.io/stacksmith-images/minideb-buildpack:jessie-r8 MAINTAINER Bitnami ENV STACKSMITH_STACK_ID="x07bd4s" \ STACKSMITH_STACK_NAME="Node.js for bitnami/bitnami-docker-express" \ STACKSMITH_STACK_PRIVATE="1" RUN bitnami-pkg install node-7.0.0-0 --checksum 8049e447c9ac3cbf74b2ea7602e7126b6e5610b2f2c7b0e5f3ad18710eca4108 ENV PATH=/opt/bitnami/node/bin:/opt/bitnami/python/bin:$PATH \ NODE_PATH=/opt/bitnami/node/lib/node_modules ## STACKSMITH-END: Modifications below this line will be unchanged when regenerating # ExpressJS template ENV BITNAMI_APP_NAME=express ENV BITNAMI_IMAGE_VERSION=4.14.0-r14 RUN bitnami-pkg install express-generator-4.13.4-1 --checksum 937c865650282fa55c0e543166b95b0aab9e4cf891782cee056037697b2b64e3 RUN bitnami-pkg install express-4.14.0-1 --checksum f98a7f8e85d038bb895d1105f6a0d995810b004f78b4fc0a0299237dc5070795 RUN npm install -g bower@1.8.0 COPY rootfs/ / # The extra files that we bundle should use the Bitnami User # so the entrypoint does not have any permission issues RUN chown -R bitnami: /app /app_template USER bitnami WORKDIR /app EXPOSE 3000 ENTRYPOINT ["/app-entrypoint.sh"] CMD ["npm", "start"]