Created
March 13, 2018 23:43
-
-
Save aisrael/cd9a7e464d845ebcd9be9149c19541d8 to your computer and use it in GitHub Desktop.
crystal-amber-docker
This file contains hidden or 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 ysbaddaden/crystal-alpine:0.24.1 as builder | |
RUN apk add openssl-dev yaml-dev nodejs | |
WORKDIR /src | |
COPY shard.* /src/ | |
RUN shards | |
COPY . /src | |
RUN rm -rf node_modules | |
RUN npm install | |
RUN crystal build src/hello.cr | |
FROM alpine:3.7 | |
RUN apk add --update gc openssl yaml pcre libevent libgcc | |
RUN mkdir /app | |
WORKDIR /app | |
COPY config /app/config | |
COPY public /app/public | |
COPY --from=builder /src/node_modules /app/node_modules | |
COPY --from=builder /src/hello /app/ | |
CMD ["/app/hello"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment