Skip to content

Instantly share code, notes, and snippets.

@nathanpeck
Last active March 23, 2019 12:18
Show Gist options
  • Select an option

  • Save nathanpeck/76f3076173838dccc34945c68e25c213 to your computer and use it in GitHub Desktop.

Select an option

Save nathanpeck/76f3076173838dccc34945c68e25c213 to your computer and use it in GitHub Desktop.
FROM node:9 AS build
WORKDIR /srv
ADD package.json .
RUN npm install
FROM node:9-slim
COPY --from=build /srv .
ADD . .
EXPOSE 3000
CMD ["node", "index.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment