feat: initial Containerfile for operator image

This commit is contained in:
Dominik Meyer 2024-07-25 08:20:03 +02:00
parent c074a8f3a4
commit 28132db6fc
Signed by: byterazor
GPG Key ID: EABDA0FD5981BC97

23
operator/Containerfile Normal file
View File

@ -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/