Skip to content

Instantly share code, notes, and snippets.

@sarmadsaleem
Created September 8, 2020 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sarmadsaleem/3be62d461b0f2759da2cd6848e072331 to your computer and use it in GitHub Desktop.
Save sarmadsaleem/3be62d461b0f2759da2cd6848e072331 to your computer and use it in GitHub Desktop.
ScoutAPM - Dockerfile for sample node app
# Use node alpine as base image for small image size
FROM node:12-alpine
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
COPY package*.json ./
RUN npm install
# Bundle app source
COPY . .
# Expose port
EXPOSE 3000
# Launch container with this command
CMD [ "node", "app.js" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment