44 lines
1.2 KiB
Text
44 lines
1.2 KiB
Text
|
# Image used to run actions on forgejo.mixinet.net that don't need nodejs
|
||
|
|
||
|
# This arg could be passed by the container build command (used with mirrors)
|
||
|
ARG OCI_REGISTRY_PREFIX
|
||
|
|
||
|
# Latest tested version of alpine
|
||
|
FROM ${OCI_REGISTRY_PREFIX}alpine:3.21.3
|
||
|
|
||
|
# Tool versions
|
||
|
ARG REGCLIENT_VERS=0.8.2
|
||
|
ARG TMPL_VERSION=0.4.0-sto.3
|
||
|
|
||
|
# Update dist & install commands and non packaged tools
|
||
|
RUN apk update &&\
|
||
|
apk upgrade &&\
|
||
|
apk add \
|
||
|
bash \
|
||
|
ca-certificates \
|
||
|
curl \
|
||
|
docker-cli \
|
||
|
gettext-envsubst \
|
||
|
git \
|
||
|
jq \
|
||
|
openssl \
|
||
|
openssh-keygen \
|
||
|
yq \
|
||
|
zip \
|
||
|
&&\
|
||
|
rm -rf /var/cache/apk/* &&\
|
||
|
case "$(apk --print-arch)" in "aarch64") ARCH="arm64";; "x86_64") ARCH="amd64";; esac && \
|
||
|
for app in regctl regsync; do \
|
||
|
REGCLIENT_URL="https://github.com/regclient/regclient/releases/download/v${REGCLIENT_VERS}/${app}-linux-$ARCH"; \
|
||
|
curl -fsSL -o "/tmp/$app" "$REGCLIENT_URL";\
|
||
|
install /tmp/$app /usr/local/bin;\
|
||
|
rm -f /tmp/$app; \
|
||
|
done &&\
|
||
|
TMPL_URL="https://github.com/sto/tmpl/releases/download/v${TMPL_VERSION}/tmpl-linux_$ARCH" &&\
|
||
|
curl -fsSL -o "/tmp/tmpl" "$TMPL_URL" &&\
|
||
|
install /tmp/tmpl /usr/local/bin &&\
|
||
|
rm -f /tmp/tmpl
|
||
|
|
||
|
# Set the entrypoint to /bin/sh
|
||
|
CMD ["/bin/sh"]
|