-
Notifications
You must be signed in to change notification settings - Fork 19
/
Dockerfile
72 lines (60 loc) · 1.77 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
FROM ubuntu:14.04
RUN apt-get update && apt-get install -y
RUN apt-get install -y \
build-essential \
libxml2-dev \
libxslt1-dev \
libcroco3-dev \
librsvg2-dev \
libjpeg-dev \
libgif-dev \
libssl-dev \
libreadline6 \
libreadline6-dev \
libffi-dev \
libgmp-dev \
zlib1g-dev \
libyaml-dev \
libsqlite3-dev \
libxslt-dev \
libc6-dev \
ncurses-dev \
libgdbm-dev \
libgdbm-dev \
libvlc-dev \
libgtk-3-dev \
gawk \
vlc \
curl \
ca-certificates \
gnupg2 \
openssl \
zlib1g \
autoconf \
automake \
libtool \
bison \
pkg-config \
git \
sqlite3
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER docker
ENV HOME /home/docker
RUN gpg2 --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
RUN curl -sSL https://get.rvm.io | bash -s stable
RUN /bin/bash -c "source $HOME/.rvm/scripts/rvm && rvm install 2.3.7 -C --enable-load-relative"
WORKDIR $HOME/shoes3
RUN /bin/bash -c "source $HOME/.rvm/scripts/rvm && gem install rake"
RUN /bin/bash -c "source $HOME/.rvm/scripts/rvm && gem install ffi"
RUN /bin/bash -c "source $HOME/.rvm/scripts/rvm && gem install sqlite3"
RUN /bin/bash -c "source $HOME/.rvm/scripts/rvm && gem install nokogiri"
RUN /bin/bash -c "source $HOME/.rvm/scripts/rvm && gem install chipmunk"
RUN /bin/bash -c "source $HOME/.rvm/scripts/rvm && gem install yajl-ruby"
# RUN gem install picky --no-ri --no-rdoc
COPY . ./
# for some reason the directories cannot be written to by Ruby unless I do this:
RUN sudo chmod 777 ./ -R
RUN /bin/bash -c "source $HOME/.rvm/scripts/rvm && rake setup:minlin"
RUN /bin/bash -c "source $HOME/.rvm/scripts/rvm && rake"
ENTRYPOINT ["minlin/shoes"]