Skip to content

Instantly share code, notes, and snippets.

@bengrunfeld
Last active August 2, 2020 17:49
Show Gist options
  • Save bengrunfeld/06a5cb3f507a47ea7d737fb2c88aff86 to your computer and use it in GitHub Desktop.
Save bengrunfeld/06a5cb3f507a47ea7d737fb2c88aff86 to your computer and use it in GitHub Desktop.
A Node based Dockerfile
FROM node:12.18.3
WORKDIR /usr/src/app
ENV MESSAGE "Hello from Ben"
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 4000
CMD ["npm", "start"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment