mirror of
https://github.com/bitnami/containers.git
synced 2026-03-09 15:40:15 +08:00
37 lines
1.0 KiB
Docker
37 lines
1.0 KiB
Docker
## BUILDING
|
|
## (from project root directory)
|
|
## $ docker build -t bitnami-bitnami-docker-express .
|
|
##
|
|
## RUNNING
|
|
## $ docker run -p 3000:3000 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/ubuntu-buildpack:14.04-r07
|
|
|
|
MAINTAINER Bitnami <containers@bitnami.com>
|
|
|
|
ENV STACKSMITH_STACK_ID="ur4qay6" \
|
|
STACKSMITH_STACK_NAME="bitnami/bitnami-docker-express" \
|
|
STACKSMITH_STACK_PRIVATE="1"
|
|
|
|
RUN bitnami-pkg install node-6.2.1-0 --checksum f38ccc063ccc74ab095ddcb5bd227c0722e348f53e31652fd2840779be9e581f
|
|
|
|
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
|
|
COPY . /app
|
|
WORKDIR /app
|
|
|
|
RUN npm install
|
|
|
|
EXPOSE 3000
|
|
CMD ["npm", "start"]
|