From 28132db6fca3abde9ec78ad02c576c0a53e71819 Mon Sep 17 00:00:00 2001 From: Dominik Meyer Date: Thu, 25 Jul 2024 08:20:03 +0200 Subject: [PATCH] feat: initial Containerfile for operator image --- operator/Containerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 operator/Containerfile diff --git a/operator/Containerfile b/operator/Containerfile new file mode 100644 index 0000000..5279e6f --- /dev/null +++ b/operator/Containerfile @@ -0,0 +1,23 @@ +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/ +