Skip to content

Instantly share code, notes, and snippets.

@matiasgarciaisaia
Created September 28, 2016 16:33
Show Gist options
  • Save matiasgarciaisaia/54fff661b16001df82e79c5170171555 to your computer and use it in GitHub Desktop.
Save matiasgarciaisaia/54fff661b16001df82e79c5170171555 to your computer and use it in GitHub Desktop.
Sample Crystal Dockerfile
FROM crystallang/crystal:0.19.2
# Install crystal deps
ADD shard.yml /app/
ADD shard.lock /app/
WORKDIR /app
RUN crystal deps
# Add app and build it
ADD . /app
RUN crystal build src/myproject.cr --release
# Run it!
CMD "./myproject"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment