Skip to content

Instantly share code, notes, and snippets.

@mdippery
Created April 26, 2019 00:12
Show Gist options
  • Save mdippery/6d7c6ed160a2f45fc8fba4001c0dcf40 to your computer and use it in GitHub Desktop.
Save mdippery/6d7c6ed160a2f45fc8fba4001c0dcf40 to your computer and use it in GitHub Desktop.
Dockerfile for jimmyless/space-web
FROM alpine:3.9 AS checkout
RUN apk add --update git
RUN git clone https://github.com/jimmylee/space-web.git /app
FROM alpine:3.9
RUN apk add --update npm
COPY --from=checkout /app /app
WORKDIR /app
RUN npm install \
&& npm run build
EXPOSE 3000
ENTRYPOINT ["npm", "run"]
CMD ["start"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment