aboutsummaryrefslogtreecommitdiff
path: root/lib/docker/centos
diff options
context:
space:
mode:
Diffstat (limited to 'lib/docker/centos')
-rw-r--r--lib/docker/centos24
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/docker/centos b/lib/docker/centos
new file mode 100644
index 0000000..7c6b8d4
--- /dev/null
+++ b/lib/docker/centos
@@ -0,0 +1,24 @@
+FROM centos:{{TAG}} AS base
+
+RUN yum -y install perl git gcc make
+
+COPY . /home/rstar
+
+RUN /home/rstar/bin/rstar install \
+ -p /home/raku {{INSTALL_OPTIONS}}
+
+RUN yum -y remove perl git gcc make
+
+FROM centos:{{TAG}}
+
+COPY --from=base /home/raku /usr/local
+COPY --from=base /usr/lib64 /usr/lib64
+
+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"]