-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
40 lines (32 loc) · 1.45 KB
/
Dockerfile
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
FROM ubuntu:25.04 as base
ENV YQ_VERSION=v4.30.8
ENV COMPOSE_VERSION=2.15.1
ENV DEBIAN_FRONTEND=noninteractive
ENV DOCKERVERSION=20.10.22
ENV HELM_VERSION=3.11.0
ENV TRIVYVERSION=0.36.1
RUN apt-get update \
&& apt-get install -y --no-install-recommends git curl \
uuid \
jq \
ca-certificates \
openssh-client \
python3 \
&& rm -rf /var/lib/apt/lists/*
# Download Trivy
RUN curl -sSLO https://github.com/aquasecurity/trivy/releases/download/v${TRIVYVERSION}/trivy_${TRIVYVERSION}_Linux-64bit.tar.gz \
&& tar xzvf trivy_${TRIVYVERSION}_Linux-64bit.tar.gz \
-C /bin/ trivy \
&& rm trivy_${TRIVYVERSION}_Linux-64bit.tar.gz
RUN curl -sSLO https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKERVERSION}.tgz \
&& tar xzvf docker-${DOCKERVERSION}.tgz --strip 1 -C /bin docker/docker \
&& rm docker-${DOCKERVERSION}.tgz
RUN curl -sSLO https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz \
&& tar xvf helm-v${HELM_VERSION}-linux-amd64.tar.gz --strip 1 -C /bin/ linux-amd64/helm \
&& rm helm-v${HELM_VERSION}-linux-amd64.tar.gz
RUN curl -ksSL -o /bin/yq https://github.com/mikefarah/yq/releases/download/$YQ_VERSION/yq_linux_amd64
RUN curl -ksSL https://github.com/docker/compose/releases/download/$COMPOSE_VERSION/docker-compose-Linux-x86_64 -o /bin/docker-compose
RUN helm plugin install https://github.com/chartmuseum/helm-push.git
RUN chmod +x /bin/docker-compose
RUN chmod +x /bin/yq
COPY bin /usr/local/bin