ADD file:88252a7f118b4d6f55dd5baf49dbcaa053c9d6172c652963c1151fa76f625e44 in / |
CMD ["bash"] |
ARG VERSION_ARG=0.0.0 |
ENV HUGO_VERSION=0.111.3 |
ENV HUGO_BIND=0.0.0.0 HUGO_DESTINATION=public HUGO_ENV=DEV HOME=/tmp |
RUN |1 VERSION_ARG=0.111.3 /bin/sh -c apt update && DEBIAN_FRONTEND=noninteractive apt install -y wget bash-completion tzdata make ca-certificates && rm -rf /var/lib/apt/lists/* && find /tmp -mindepth 1 -maxdepth 1 | xargs rm -rf && mkdir -p /src /target && chmod a+w /src /target # buildkit |
COPY / / # buildkit |
EXPOSE map[1313/tcp:{}] |
WORKDIR /src |
ENTRYPOINT ["hugo"] |
ENV HUGO_EDITION=extended HUGO_CACHEDIR=/tmp NODE_PATH=.:/usr/lib/node_modules GOROOT=/usr/local/lib/go |
COPY / / # buildkit |
RUN /bin/sh -c true && apt update && DEBIAN_FRONTEND=noninteractive apt install -y curl git gnupg apt-transport-https lsb-release && DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends python3-minimal python3-pip python3-setuptools python3-wheel && pip install rst2html && curl -sL https://deb.nodesource.com/setup_20.x | bash - && apt install -y nodejs && npm install -g autoprefixer@10.4.14 postcss@8.4.24 postcss-cli@10.1.0 yarn@1.22.19 @babel/cli @babel/core && DEBIAN_FRONTEND=noninteractive apt install -y ruby && gem install asciidoctor coderay asciidoctor-rouge --no-document && apt remove -y curl gnupg apt-transport-https lsb-release python3-pip python3-setuptools python3-wheel && apt autoremove -y && rm -rf /var/lib/apt/lists/* && find /tmp -mindepth 1 -maxdepth 1 | xargs rm -rf && mkdir -p /src /target && chmod a+w /src /target && git config --global --add safe.directory /src # buildkit |
COPY / / # buildkit |
RUN /bin/sh -c apt update && apt install -y curl git python3 # buildkit |
EXPOSE map[8000/tcp:{}] |
COPY . /src/ # buildkit |
ENTRYPOINT ["/bin/bash"] |
CMD ["-c" "hugo && python3 -m http.server --bind 0.0.0.0 --directory public 8000"] |