Skip to content

Instantly share code, notes, and snippets.

@felipekm
Created April 4, 2018 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felipekm/4de744e8f967b5173fb6efca11565ae6 to your computer and use it in GitHub Desktop.
Save felipekm/4de744e8f967b5173fb6efca11565ae6 to your computer and use it in GitHub Desktop.
Dockerfile sample with Alpine/NODE
FROM mhart/alpine-node:9 AS build
WORKDIR /srv
ADD package.json .
RUN npm install
ADD . .
FROM mhart/alpine-node:base-9
COPY --from=build /srv .
EXPOSE 3000
CMD ["node", "index.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment