Skip to content

Instantly share code, notes, and snippets.

@sarmadsaleem

sarmadsaleem/Dockerfile Secret

Created Sep 8, 2020
Embed
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
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
You can’t perform that action at this time.