-
Notifications
You must be signed in to change notification settings - Fork 148
/
Dockerfile
69 lines (55 loc) · 1.6 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
FROM fedora:35
LABEL org.opencontainers.image.title="Arquillian.org website generator"
LABEL org.opencontainers.image.description="This is image provides a build tool chain for arquillian.org website. Follow the README from the repository for details"
LABEL org.opencontainers.image.licenses="Apache-2.0"
LABEL org.opencontainers.image.authors="Bartosz Majsak <[email protected]>"
RUN dnf -y update && dnf clean all
RUN dnf -y install \
autoconf \
automake \
bison \
bzip2 \
gcc-c++ \
git \
glibc-devel \
glibc-headers \
ImageMagick-devel \
libffi-devel \
libtool \
libxml2-devel \
libxslt-devel \
libyaml-devel \
make \
nmap \
openssl-devel \
patch \
patch \
procps \
readline-devel \
sqlite-devel \
which \
v8-devel \
zlib-devel \
&& dnf clean all
RUN groupadd -r dev && useradd -g dev -u 1000 dev
RUN mkdir -p /home/dev
RUN chown dev:dev /home/dev
USER dev
ENV HOME /home/dev
WORKDIR $HOME
# Install RVM
RUN curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
RUN curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -
RUN curl -L get.rvm.io | bash -s stable --autolibs=read-only
ENV RUBY_VERSION 2.5.9
RUN bash -l -c "rvm install $RUBY_VERSION"
RUN bash -l -c "rvm use $RUBY_VERSION"
RUN bash -l -c "rvm cleanup all"
# Install Rake and Bundler for driving the Awestruct build & site
RUN bash -l -c "gem install -N bundler rake"
ENV AWESTRUCT_VERSION 0.6.1
RUN bash -l -c "gem install awestruct -v $AWESTRUCT_VERSION"
RUN echo 'alias install-gems="bundle install -j 10 --path ./.gems"' >> $HOME/.bashrc
RUN source $HOME/.bashrc
EXPOSE 4242
CMD ["bash", "--login"]