From 6a336f0167393318639b6bc1c9ccf0484219c970 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Wed, 8 Apr 2020 14:16:48 +0200 Subject: Rewrite the build-docker action --- lib/docker/debian.Dockerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 lib/docker/debian.Dockerfile (limited to 'lib/docker/debian.Dockerfile') diff --git a/lib/docker/debian.Dockerfile b/lib/docker/debian.Dockerfile new file mode 100644 index 0000000..52652a4 --- /dev/null +++ b/lib/docker/debian.Dockerfile @@ -0,0 +1,23 @@ +FROM debian:latest AS base + +COPY . /home/rstar + +RUN apt-get update +RUN apt-get install -y git build-essential libreadline7 +RUN /home/rstar/bin/rstar install -p /home/raku +RUN apt-get -y remove git build-essential +RUN apt-get -y autoremove + +FROM debian:latest + +COPY --from=base /home/raku /usr/local +COPY --from=base /lib /lib + +ENV PATH=/usr/local/share/perl6/site/bin:$PATH +ENV PATH=/usr/local/share/perl6/vendor/bin:$PATH +ENV PATH=/usr/local/share/perl6/core/bin:$PATH +ENV PERL6LIB=/app/lib + +WORKDIR /app + +CMD [ "raku" ] -- cgit v1.1