Skip to content

Instantly share code, notes, and snippets.

@herpiko
Forked from anak10thn/Dockerfile.nodejs
Created October 1, 2016 12:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save herpiko/5f9821e04c3cf5d77029001a2e153684 to your computer and use it in GitHub Desktop.
Save herpiko/5f9821e04c3cf5d77029001a2e153684 to your computer and use it in GitHub Desktop.
FROM tatsushid/tinycore-node
# set environment
ENV APP=/opt/maoo
# Create app directory
RUN mkdir -p $APP
WORKDIR $APP
# Install app dependencies
COPY package.json $APP
RUN npm install
# Bundle app source
COPY . $APP
EXPOSE 3000
CMD [ "npm", "start" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment