aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2019-11-04 18:42:03 +0100
committerPatrick Spek <p.spek@tyil.nl>2019-11-04 18:42:03 +0100
commit215447a103a4f050c3c5bd544f2628890a649882 (patch)
treeed162eea6fc963d22cd1b6c370f627fc3f1746c2
parentac4dcc41d3748fe79801c1b0ccfde0e346c3f35a (diff)
Update 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