Created
April 4, 2018 20:17
-
-
Save felipekm/4de744e8f967b5173fb6efca11565ae6 to your computer and use it in GitHub Desktop.
Dockerfile sample with Alpine/NODE
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
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