Skip to content

Instantly share code, notes, and snippets.

@rickpeyton
Created June 7, 2018 11:26
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 rickpeyton/a5c6eeca73db2a8090b20f5d6cec831d to your computer and use it in GitHub Desktop.
Save rickpeyton/a5c6eeca73db2a8090b20f5d6cec831d to your computer and use it in GitHub Desktop.
Ubuntu Build for Amber Crystal Framework
FROM ubuntu:latest
COPY sources.list /etc/apt/sources.list
RUN apt-get -y update && \
apt-get -y install \
apt-utils \
build-essential \
ca-certificates \
curl \
gnupg2 \
libreadline-dev \
libsqlite3-dev \
libpq-dev \
libmysqlclient-dev \
libssl-dev \
libyaml-dev \
nginx
RUN apt-key adv --keyserver keys.gnupg.net --recv-keys 09617FD37CC06B54
RUN echo "deb https://dist.crystal-lang.org/apt crystal main" > /etc/apt/sources.list.d/crystal.list
RUN apt-get -y update && apt-get -y install crystal
RUN curl -L https://github.com/amberframework/amber/archive/stable.tar.gz | tar xz
WORKDIR amber-stable
RUN shards install
RUN apt-get -y build-dep nginx
RUN make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment