|
1 | | -FROM docker.elastic.co/docs/preview:latest |
| 1 | +FROM docker.elastic.co/docs/preview:latest AS build |
2 | 2 |
|
3 | 3 | COPY air_gapped/work/target_repo.git /docs_build/.repos/target_repo.git |
4 | 4 |
|
| 5 | +FROM chainguard/wolfi-base:latest |
| 6 | +#FROM perl:5.42-bookworm |
| 7 | +RUN apk update |
| 8 | +RUN apk add perl |
| 9 | +RUN apk add curl |
| 10 | +RUN apk add perl-app-cpanminus |
| 11 | + |
| 12 | +RUN apk add gcc make git patch perl-dev wget |
| 13 | +RUN apk add openssl-dev |
| 14 | +RUN apk add zlib-dev |
| 15 | +RUN apk add perl-net-ssleay |
| 16 | + |
| 17 | +ENV PERL5LIB=/usr/local/lib/perl5 |
| 18 | +ENV PATH=/usr/local/bin:$PATH |
| 19 | + |
| 20 | +WORKDIR / |
| 21 | +RUN cpanm -n XML::LibXML |
| 22 | +RUN cpanm -n File::Copy::Recursive |
| 23 | +RUN cpanm -n Path::Class |
| 24 | +RUN cpanm -n Parallel::ForkManager |
| 25 | +RUN cpanm -n YAML |
| 26 | +#RUN apt update -y |
| 27 | +#RUN apt-get install -y perl |
| 28 | +#RUN apt-get install -y nginx |
| 29 | +#RUN apt-get install -y nodejs |
| 30 | +#RUN apt-get install -y git |
| 31 | + |
| 32 | +#RUN apt-get install -y libxml-simple-perl |
| 33 | +#RUN apt-get install -y libfile-copy-recursive-perl |
| 34 | +#RUN apt-get install -y libpath-class-perl |
| 35 | +#RUN apt-get install -y libcapture-tiny-perl |
| 36 | +#RUN apt-get install -y libparallel-forkmanager-perl |
| 37 | +#RUN apt-get install -y libyaml-perl |
| 38 | + |
| 39 | +RUN apk add nginx |
| 40 | +RUN apk add nodejs |
| 41 | + |
| 42 | +COPY --from=build /docs_build /docs_build |
| 43 | +COPY --from=build /node_modules /node_modules |
| 44 | + |
| 45 | +RUN adduser -D nginx |
| 46 | +RUN mkdir -p /var/lib/nginx/tmp/ |
| 47 | + |
5 | 48 | CMD ["/docs_build/build_docs.pl", "--in_standard_docker", "--gapped", "--preview"] |
0 commit comments