-
-
Notifications
You must be signed in to change notification settings - Fork 98
/
Dockerfile
29 lines (22 loc) · 1.07 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
FROM alpine:3.20 AS builder
RUN apk add --no-cache build-base git perl
RUN git clone -b 2024.05 https://github.com/rakudo/rakudo.git \
&& cd rakudo \
&& CFLAGS=-flto ./Configure.pl \
--gen-moar \
--moar-option=--ar=gcc-ar \
--prefix=/usr \
&& make -j`nproc` install \
&& strip /usr/bin/rakudo /usr/lib/libmoar.so
RUN rm -r /usr/share/nqp/lib/profiler \
/usr/share/perl6/runtime/rakudo-debug.moarvm \
/usr/share/perl6/runtime/rakudo.moarvm \
/usr/share/perl6/runtime/perl6-debug.moarvm
FROM codegolf/lang-base-no-proc
COPY --from=0 /lib/ld-musl-x86_64.so.1 /lib/
COPY --from=0 /usr/bin/rakudo /usr/bin/raku
COPY --from=0 /usr/lib/libmoar.so /usr/lib/
COPY --from=0 /usr/share/nqp /usr/share/nqp
COPY --from=0 /usr/share/perl6 /usr/share/perl6
ENTRYPOINT ["raku"]
CMD ["-v"]