Kumanda/operator/Containerfile

24 lines
610 B
Plaintext
Raw Permalink Normal View History

FROM debian:stable-slim as kabo-builder
RUN apt-get -qy update && apt-get -qy upgrade
RUN apt-get -qy install git gcc libc6-dev liblwp-protocol-https-perl make patch
RUN mkdir /var/www && chown www-data /var/www
USER www-data
RUN git clone https://github.com/tokuhirom/plenv.git ~/.plenv
RUN git clone https://github.com/tokuhirom/Perl-Build.git ~/.plenv/plugins/perl-build/
RUN export PATH="$HOME/.plenv/bin:$PATH" && eval "$(plenv init -)"
RUN export PATH="$HOME/.plenv/bin:$PATH" && plenv install 5.40.0
FROM debian:stable-slim
USER www-data
COPY --from=kabo-builder $HOME/.plenv/ $HOME/.plenv/