File tree Expand file tree Collapse file tree 4 files changed +23
-11
lines changed Expand file tree Collapse file tree 4 files changed +23
-11
lines changed Original file line number Diff line number Diff line change 3
3
4
4
RUN apt-get update && apt-get install -y curl procps
5
5
6
- RUN mkdir /usr/src/perl
7
- WORKDIR /usr/src/perl
8
- RUN curl -SL http ://www. cpan.org/src/5.0/ perl-5.18.2 .tar.gz \
9
- | tar -xz --strip-components=1
6
+ WORKDIR /tmp
7
+ ADD sha1.txt /tmp/sha1.txt
8
+ RUN curl -SL https ://cpan.metacpan. org/authors/id/R/RJ/RJBS/perl-5.18.4.tar.bz2 -o /tmp/ perl-5.18.4 .tar.bz2
9
+ RUN sha1sum -c /tmp/sha1.txt
10
10
11
- RUN ./Configure -Duse64bitall -des \
11
+ WORKDIR /usr/src/perl
12
+ RUN tar --strip-components=1 -xjf /tmp/perl-5.18.4.tar.bz2
13
+ RUN rm /tmp/perl-5.18.4.tar.bz2 /tmp/sha1.txt
14
+ # ccflags=-fwrapv is needed for gcc 4.9, and added by Configure automatically in 5.20+
15
+ RUN ./Configure -Dusethreads -A ccflags=-fwrapv -Duse64bitall -des \
12
16
&& make -j$(nproc) \
13
17
&& TEST_JOBS=$(nproc) make test_harness \
14
18
&& make install \
@@ -22,4 +26,4 @@ RUN curl -LO https://raw.githubusercontent.com/miyagawa/cpanminus/master/cpanm \
22
26
23
27
WORKDIR /root
24
28
25
- CMD ["perl5.18.2 " ,"-de0" ]
29
+ CMD ["perl5.18.4 " ,"-de0" ]
Original file line number Diff line number Diff line change
1
+ 69c34558a0a939a7adbbc1de48c06ea418d81e27 perl-5.18.4.tar.bz2
Original file line number Diff line number Diff line change 4
4
RUN apt-get update && apt-get install -y curl procps
5
5
6
6
RUN mkdir /usr/src/perl
7
- WORKDIR /usr/src/perl
8
- RUN curl -SL http://www.cpan.org/src/5.0/perl-5.18.2.tar.gz \
9
- | tar -xz --strip-components=1
10
7
11
- RUN ./Configure -Dusethreads -Duse64bitall -des \
8
+ WORKDIR /tmp
9
+ ADD sha1.txt /tmp/sha1.txt
10
+ RUN curl -SL https://cpan.metacpan.org/authors/id/R/RJ/RJBS/perl-5.18.4.tar.bz2 -o /tmp/perl-5.18.4.tar.bz2
11
+ RUN sha1sum -c /tmp/sha1.txt
12
+
13
+ WORKDIR /usr/src/perl
14
+ RUN tar --strip-components=1 -xjf /tmp/perl-5.18.4.tar.bz2
15
+ RUN rm /tmp/perl-5.18.4.tar.bz2 /tmp/sha1.txt
16
+ # ccflags=-fwrapv is needed for gcc 4.9, and added by Configure automatically in 5.20+
17
+ RUN ./Configure -Duse64bitall -A ccflags=-fwrapv -des \
12
18
&& make -j$(nproc) \
13
19
&& TEST_JOBS=$(nproc) make test_harness \
14
20
&& make install \
@@ -22,4 +28,4 @@ RUN curl -LO https://raw.githubusercontent.com/miyagawa/cpanminus/master/cpanm \
22
28
23
29
WORKDIR /root
24
30
25
- CMD ["perl5.18.2 " ,"-de0" ]
31
+ CMD ["perl5.18.4 " ,"-de0" ]
Original file line number Diff line number Diff line change
1
+ 69c34558a0a939a7adbbc1de48c06ea418d81e27 perl-5.18.4.tar.bz2
You can’t perform that action at this time.
0 commit comments