2023-04-06 14:47:51 +02:00
|
|
|
FROM reg.cadoles.com/proxy_cache/library/ubuntu:22.04
|
|
|
|
|
|
|
|
ARG HTTP_PROXY=
|
|
|
|
ARG HTTPS_PROXY=
|
|
|
|
ARG http_proxy=
|
|
|
|
ARG https_proxy=
|
2023-12-05 22:40:53 +01:00
|
|
|
ARG GO_VERSION=1.21.5
|
2023-04-06 14:47:51 +02:00
|
|
|
|
|
|
|
# Install dev environment dependencies
|
|
|
|
RUN export DEBIAN_FRONTEND=noninteractive &&\
|
|
|
|
apt-get update -y &&\
|
|
|
|
apt-get install -y --no-install-recommends curl ca-certificates build-essential wget unzip tar git jq
|
|
|
|
|
|
|
|
# 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"
|
|
|
|
|
|
|
|
# Add LetsEncrypt certificates
|
|
|
|
RUN curl -k https://forge.cadoles.com/Cadoles/Jenkins/raw/branch/master/resources/com/cadoles/common/add-letsencrypt-ca.sh | bash
|
|
|
|
|
|
|
|
# Install NodeJS
|
|
|
|
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
|
|
|
|
&& apt-get install -y nodejs
|