forked from tmm1/stackprof
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (20 loc) · 1011 Bytes
/
Dockerfile
File metadata and controls
21 lines (20 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM ubuntu:16.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -q && \
apt-get install -qy \
curl ca-certificates gnupg2 dirmngr build-essential \
gawk git autoconf automake pkg-config \
bison libffi-dev libgdbm-dev libncurses5-dev libsqlite3-dev libtool \
libyaml-dev sqlite3 zlib1g-dev libgmp-dev libreadline-dev libssl-dev \
ruby --no-install-recommends && \
apt-get clean
RUN gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
RUN curl -sSL https://get.rvm.io | bash -s
ARG RVM_RUBY_VERSION=ruby-head
RUN /bin/bash -l -c "echo $RVM_RUBY_VERSION"
RUN /bin/bash -l -c ". /etc/profile.d/rvm.sh && rvm install $RVM_RUBY_VERSION --binary || rvm install $RVM_RUBY_VERSION"
ADD . /stackprof/
WORKDIR /stackprof/
RUN /bin/bash -l -c ". /etc/profile.d/rvm.sh && gem install bundler:1.16.0"
RUN /bin/bash -l -c ". /etc/profile.d/rvm.sh && bundle install"
CMD /bin/bash -l -c ". /etc/profile.d/rvm.sh && bundle exec rake"