-
-
Save sarmadsaleem/3be62d461b0f2759da2cd6848e072331 to your computer and use it in GitHub Desktop.
ScoutAPM - Dockerfile for sample node app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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