Skip to content

Instantly share code, notes, and snippets.

@braidn
Last active June 27, 2020 22:08
Show Gist options
  • Save braidn/5ba7eb65a43bccbe30a1607152382955 to your computer and use it in GitHub Desktop.
Save braidn/5ba7eb65a43bccbe30a1607152382955 to your computer and use it in GitHub Desktop.
Crystal Devcontainer
ARG VARIANT="20.04"
FROM mcr.microsoft.com/vscode/devcontainers/base:0-ubuntu${VARIANT}
RUN apt-get update && \
apt-get install -y build-essential curl libevent-dev libssl-dev libxml2-dev libyaml-dev libgmp-dev git && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN curl -sL "https://keybase.io/crystal/pgp_keys.asc" | apt-key add - && \
echo "deb https://dist.crystal-lang.org/apt crystal main" | tee /etc/apt/sources.list.d/crystal.list && \
apt-get update
RUN apt install -y crystal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment