2023-04-24 20:52:12 +02:00
|
|
|
FROM reg.cadoles.com/proxy_cache/library/ubuntu:22.04
|
|
|
|
|
|
|
|
ARG HTTP_PROXY=
|
|
|
|
ARG HTTPS_PROXY=
|
|
|
|
ARG http_proxy=
|
|
|
|
ARG https_proxy=
|
|
|
|
|
|
|
|
# Install dev environment dependencies
|
|
|
|
RUN export DEBIAN_FRONTEND=noninteractive &&\
|
2023-07-06 17:33:52 +02:00
|
|
|
apt clean &&\
|
2023-04-24 20:52:12 +02:00
|
|
|
apt-get update -y &&\
|
2023-07-06 17:33:52 +02:00
|
|
|
apt-get install -y --no-install-recommends curl ca-certificates build-essential wget unzip tar git jq gnupg
|
2023-04-24 20:52:12 +02:00
|
|
|
|
|
|
|
# Add LetsEncrypt certificates
|
|
|
|
RUN curl -k https://forge.cadoles.com/Cadoles/Jenkins/raw/branch/master/resources/com/cadoles/common/add-letsencrypt-ca.sh | bash
|
|
|
|
|
2023-07-06 17:33:52 +02:00
|
|
|
RUN install -m 0755 -d /etc/apt/keyrings \
|
|
|
|
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg \
|
|
|
|
&& chmod a+r /etc/apt/keyrings/docker.gpg \
|
|
|
|
&& echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
|
|
|
|
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" \
|
|
|
|
| tee /etc/apt/sources.list.d/docker.list > /dev/null \
|
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get install -y docker-ce-cli
|
|
|
|
|
2024-03-27 17:50:15 +01:00
|
|
|
ARG GO_VERSION=1.22
|
2023-04-24 20:52:12 +02:00
|
|
|
|
|
|
|
# Install Go
|
|
|
|
RUN mkdir -p /tmp \
|
|
|
|
&& wget -O /tmp/go${GO_VERSION}.linux-amd64.tar.gz https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz \
|
|
|
|
&& rm -rf /usr/local/go \
|
|
|
|
&& mkdir -p /usr/local \
|
|
|
|
&& tar -C /usr/local -xzf /tmp/go${GO_VERSION}.linux-amd64.tar.gz
|
|
|
|
|
|
|
|
ENV PATH="${PATH}:/usr/local/go/bin"
|