diff options
author | Patrick Spek <p.spek@tyil.nl> | 2020-04-08 14:16:48 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2020-04-08 14:16:48 +0200 |
commit | 6a336f0167393318639b6bc1c9ccf0484219c970 (patch) | |
tree | 216ec664235bb02adc56beebab1e5fc7daec7a74 /lib/docker/centos.Dockerfile | |
parent | 2b8fac1454b3ca9077621420cedda3c228a87466 (diff) |
Rewrite the build-docker action
Diffstat (limited to 'lib/docker/centos.Dockerfile')
-rw-r--r-- | lib/docker/centos.Dockerfile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/docker/centos.Dockerfile b/lib/docker/centos.Dockerfile new file mode 100644 index 0000000..bebe219 --- /dev/null +++ b/lib/docker/centos.Dockerfile @@ -0,0 +1,21 @@ +FROM centos:latest AS base + +COPY . /home/rstar + +RUN yum -y install perl git gcc make +RUN /home/rstar/bin/rstar install -p /home/raku +RUN yum -y remove perl git gcc make + +FROM centos:latest + +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"] |