Skip to content

Instantly share code, notes, and snippets.


sarmadsaleem/Dockerfile Secret

Created Sep 8, 2020
What would you like to do?
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
# 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