aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile
index ef78892..012e31e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,16 +2,19 @@ FROM alpine:latest AS build
ARG VERSION
-COPY work /tmp
+COPY work /tmp/work
+
+WORKDIR /tmp/rakudo-star
-RUN cd -- "$(mktemp -d)"
-RUN tar xzf "/tmp/release/rakudo-star-$VERSION.tar.gz"
-RUN cd -- "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
+RUN tar xzf "/tmp/work/release/rakudo-star-$VERSION.tar.gz"
+RUN cd -- "rakudo-star-$VERSION" \
+ && perl Configure.pl --prefix=/usr/local --backend=moar --gen-moar --make-install
FROM alpine:latest
+WORKDIR /root
+
RUN apk add --no-cache libressl
COPY --from=build /usr/local /usr/local