From 215447a103a4f050c3c5bd544f2628890a649882 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Mon, 4 Nov 2019 18:42:03 +0100 Subject: Update Dockerfile --- Dockerfile | 13 ++++++++----- 1 file 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 -- cgit v1.1