Skip to content

Instantly share code, notes, and snippets.

@mponizil
Created September 20, 2018 17:34
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 mponizil/fdac1ac59c681478a38e611f97179631 to your computer and use it in GitHub Desktop.
Save mponizil/fdac1ac59c681478a38e611f97179631 to your computer and use it in GitHub Desktop.
FROM mhart/alpine-node:8 AS base
WORKDIR /usr/src
COPY . .
RUN apk add --no-cache git
RUN yarn
RUN yarn build
FROM mhart/alpine-node:base-8
WORKDIR /usr/src
COPY --from=base /usr/src/ ./
CMD ["node", "build/server.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment