Skip to content

Instantly share code, notes, and snippets.

@anicholson
Last active October 23, 2016 22:24
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 anicholson/29238c8239e5f621be8037a9033cd06d to your computer and use it in GitHub Desktop.
Save anicholson/29238c8239e5f621be8037a9033cd06d to your computer and use it in GitHub Desktop.
Crystal Ubuntu package does not install all required dependencies
FROM ubuntu
MAINTAINER Andy Nicholson <andrew@anicholson.net>
RUN apt-get update && \
apt-get install -y apt-transport-https && \
apt-key adv --keyserver keys.gnupg.net --recv-keys 09617FD37CC06B54 && \
echo "deb https://dist.crystal-lang.org/apt crystal main" > /etc/apt/sources.list.d/crystal.list && \
apt-get update && \
apt-get install -y crystal
RUN echo 'puts "WORKING!"' > /tmp/test.cr
RUN crystal build -o test /tmp/test.cr
ENTRYPOINT test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment