Created
June 7, 2018 11:26
-
-
Save rickpeyton/a5c6eeca73db2a8090b20f5d6cec831d to your computer and use it in GitHub Desktop.
Ubuntu Build for Amber Crystal Framework
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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