-
Notifications
You must be signed in to change notification settings - Fork 16
/
Dockerfile.multiarch
49 lines (42 loc) · 1.85 KB
/
Dockerfile.multiarch
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
FROM docker.io/ubuntu:22.04@sha256:adbb90115a21969d2fe6fa7f9af4253e16d45f8d4c1e930182610c4731962658
LABEL maintainer="ownCloud GmbH <[email protected]>" \
org.opencontainers.image.authors="ownCloud DevOps <[email protected]>" \
org.opencontainers.image.title="ownCloud Ubuntu" \
org.opencontainers.image.url="https://hub.docker.com/r/owncloud/ubuntu" \
org.opencontainers.image.source="https://github.com/owncloud-docker/ubuntu" \
org.opencontainers.image.documentation="https://github.com/owncloud-docker/ubuntu"
ARG TARGETOS
ARG TARGETARCH
ARG TARGETVARIANT
ENV DEBIAN_FRONTEND noninteractive
ENV TERM xterm
# renovate: datasource=github-releases depName=hairyhenderson/gomplate
ENV GOMPLATE_VERSION="${GOMPLATE_VERSION:-v4.1.0}"
# renovate: datasource=github-releases depName=owncloud-ci/wait-for
ENV WAIT_FOR_VERSION="${WAIT_FOR_VERSION:-v2.0.4}"
# renovate: datasource=github-releases depName=owncloud-ci/retry
ENV RETRY_VERSION="${RETRY_VERSION:-v2.0.0}"
RUN apt-get update -y && \
apt-get install --no-install-recommends -y \
ca-certificates \
bash \
curl \
wget \
procps \
apt-utils \
apt-transport-https \
bzip2 \
cron \
jq \
gnupg \
libnss-wrapper && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN curl -SsfL -o /usr/bin/gomplate "https://github.com/hairyhenderson/gomplate/releases/download/${GOMPLATE_VERSION}/gomplate_${TARGETOS}-${TARGETARCH}${TARGETVARIANT}" && \
curl -SsfL -o /usr/bin/wait-for "https://github.com/owncloud-ci/wait-for/releases/download/${WAIT_FOR_VERSION}/wait-for-${TARGETOS}-${TARGETARCH}${TARGETVARIANT}" && \
curl -SsfL -o /usr/bin/retry "https://github.com/owncloud-ci/retry/releases/download/${RETRY_VERSION}/retry" && \
chmod 755 /usr/bin/gomplate && \
chmod 755 /usr/bin/wait-for && \
chmod 755 /usr/bin/retry
ADD overlay /
CMD ["bash"]