-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.amd64
56 lines (48 loc) · 1.93 KB
/
Dockerfile.amd64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
FROM regclient/regctl:v0.7.2@sha256:d7a06d75ca181f4dc6a71151bf9a5f613cd02b5b912e1e1b53daecc0c10d911e as regctl
FROM alpine:3.19@sha256:c5b1261d6d3e43071626931fc004f70149baeba2c8ec672bd4f27761f8e1ad6b
LABEL maintainer="ownCloud GmbH <[email protected]>"
LABEL org.opencontainers.image.authors="ownCloud DevOps <[email protected]>"
LABEL org.opencontainers.image.title="ownCloud CI Alpine"
LABEL org.opencontainers.image.url="https://hub.docker.com/r/owncloudci/alpine"
LABEL org.opencontainers.image.source="https://github.com/owncloud-ci/alpine"
LABEL org.opencontainers.image.documentation="https://github.com/owncloud-ci/alpine"
ARG REG_VERSION
ARG RETRY_VERSION
ARG HELM_VERSION
# renovate: datasource=github-releases depName=genuinetools/reg
ENV REG_VERSION="${REG_VERSION:-v0.16.1}"
# renovate: datasource=github-releases depName=owncloud-ci/retry
ENV RETRY_VERSION="${RETRY_VERSION:-v2.0.0}"
# renovate: datasource=github-tags depName=helm/helm
ENV HELM_VERSION="${HELM_VERSION:-v3.14.3}"
ENV TERM xterm
RUN apk --update add --no-cache \
ca-certificates \
coreutils \
bash \
vim \
curl \
wget \
bzip2 \
unzip \
ncurses \
tar \
shadow \
su-exec \
jq \
git \
make \
rsync \
tree \
yamllint \
mailcap && \
curl -SsfL -o /usr/local/bin/reg "https://github.com/genuinetools/reg/releases/download/v${REG_VERSION##v}/reg-linux-amd64" && \
curl -SsfL -o /usr/local/bin/retry "https://github.com/owncloud-ci/retry/releases/download/v${RETRY_VERSION##v}/retry" && \
curl -SsfL "https://get.helm.sh/helm-v${HELM_VERSION##v}-linux-amd64.tar.gz" | tar xz --strip-components=1 -C /usr/local/bin linux-amd64/helm && \
chmod 755 /usr/local/bin/reg && \
chmod 755 /usr/local/bin/retry && \
chmod 755 /usr/local/bin/helm && \
rm -rf /var/cache/apk/* /tmp/*
COPY ./rootfs /
COPY --from=regctl /regctl /usr/local/bin/regctl
CMD ["bash"]