Skip to content

Instantly share code, notes, and snippets.

@HuyAms
Created October 10, 2019 07:29
Show Gist options
  • Save HuyAms/5f1a0f78e76989b59569f9b67accf159 to your computer and use it in GitHub Desktop.
Save HuyAms/5f1a0f78e76989b59569f9b67accf159 to your computer and use it in GitHub Desktop.
Docker nodejs
# Specify a base image
FROM node:alpine
WORKDIR /usr/app
# Install some dependencies
COPY ./package.json ./
RUN npm install
COPY ./ ./
# Default command
CMD ["npm", "start"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment