aboutsummaryrefslogtreecommitdiff
path: root/lib/docker/debian
diff options
context:
space:
mode:
authorJosé Joaquín Atria <jjatria@gmail.com>2020-04-02 18:34:05 +0100
committerPatrick Spek <p.spek@tyil.nl>2020-04-08 13:12:12 +0200
commit2b8fac1454b3ca9077621420cedda3c228a87466 (patch)
tree81c7a6a110210544eb4a730bf5cd37f3aded7dbc /lib/docker/debian
parentfb22c4933f7ef9f0fc5421b1463e23c3c0cc07b3 (diff)
Add build-docker action
Diffstat (limited to 'lib/docker/debian')
-rw-r--r--lib/docker/debian27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/docker/debian b/lib/docker/debian
new file mode 100644
index 0000000..2051a27
--- /dev/null
+++ b/lib/docker/debian
@@ -0,0 +1,27 @@
+FROM debian:{{TAG}} AS base
+
+RUN apt-get update
+RUN apt-get install -y \
+ git build-essential libreadline7
+
+COPY . /home/rstar
+
+RUN /home/rstar/bin/rstar install \
+ -p /home/raku {{INSTALL_OPTIONS}}
+
+RUN apt-get -y remove git build-essential
+RUN apt-get -y autoremove
+
+FROM debian:{{TAG}}
+
+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" ]