feat: initial Containerfile for operator image
This commit is contained in:
parent
c074a8f3a4
commit
28132db6fc
23
operator/Containerfile
Normal file
23
operator/Containerfile
Normal 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/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user