aboutsummaryrefslogtreecommitdiff
path: root/lib/docker/debian
blob: 2051a27c1bb52f17e62b79e1ff45996c99ed7c13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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" ]