Project

General

Profile

Bug #14480 ยป Dockerfile

wanabe (_ wanabe), 02/21/2018 12:49 AM

 
1
FROM arm64v8/fedora:rawhide
2

    
3
COPY qemu-aarch64-static /usr/bin/qemu-aarch64-static
4

    
5
RUN dnf install -y gcc make bison autoconf ruby
6
RUN dnf install -y wget tar xz
7

    
8
ARG RUBY_MAJOR=2.5
9
ARG RUBY_VERSION=2.5.0
10
ARG use_volume=""
11
ARG jobs=4
12

    
13
RUN [ -z "${use_volume}" ] \
14
    && mkdir -p /usr/src/ruby \
15
    && cd /usr/src/ruby \
16
    && wget -O ../ruby.tar.xz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.xz" \
17
    && tar -xJf ../ruby.tar.xz  --strip-components=1 \
18
    && ./configure
19

    
20
WORKDIR /usr/src/ruby
21
RUN make -j${jobs} ruby || :
22
CMD make