aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2019-11-01 13:21:37 +0100
committerPatrick Spek <p.spek@tyil.nl>2019-11-01 13:21:37 +0100
commit059cddf9f557b827b21803c9dac61066e07a336e (patch)
tree791dfc1b8522f9ca282a7881f7ec40a830e460fb /Dockerfile
parent4786bf0c5ebb74fc51deab33b4b82230d455fac9 (diff)
Add Dockerfile
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..09ea8bc
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,15 @@
+FROM alpine:latest AS build
+
+ARG VERSION
+
+COPY work /tmp
+
+RUN cd -- /tmp/rakudo-star-$VERSION
+RUN apk add --no-cache build-base git perl perl-utils libressl
+RUN perl Configure.pl --prefix=/usr/local --backend=moar --gen-moar --make-install
+
+FROM alpine:latest
+
+COPY --from=build /usr/local /usr/local
+
+CMD [ "perl6" ]