jenkins-hugo/Dockerfile

25 lines
727 B
Docker

# https://github.com/containers/podman/blob/main/contrib/podmanimage/stable/Containerfile
# https://hub.docker.com/r/jenkins/inbound-agent/tags
FROM jenkins/inbound-agent:alpine-jdk17@sha256:03549d9bd5aab2263bdc2a8f45f21ae29437fe02003ec8595687376a05fa2c3d
ARG BUILDUSER=jenkins
USER root
RUN echo "@edge-community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
apk upgrade -U --available --no-cache && \
apk add --no-cache \
tini \
make \
yq \
aws-cli \
hugo@edge-community
ADD entrypoint.sh /usr/local/bin/entrypoint.sh
USER $BUILDUSER
ENV PATH=$PATH:/home/${BUILDUSER}/.local/bin
ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/entrypoint.sh"]