Skip to content

Instantly share code, notes, and snippets.

@omerxx
Created April 23, 2018 15:05
Show Gist options
  • Save omerxx/5cca6615636a41e1175e6b8db15d2f61 to your computer and use it in GitHub Desktop.
Save omerxx/5cca6615636a41e1175e6b8db15d2f61 to your computer and use it in GitHub Desktop.
FROM crystallang/crystal as builder
COPY . /opt/app
WORKDIR /opt/app
RUN crystal build --static --release src/myapp.cr
FROM scratch
WORKDIR /opt/app
COPY --from=builder /opt/app/myapp /
CMD ["/myapp"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment