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 &&\
    apt-get update -y &&\
    apt-get install -y --no-install-recommends curl ca-certificates build-essential wget unzip tar git jq gawk python3 rsync file

# Add LetsEncrypt certificates
RUN curl -k https://forge.cadoles.com/Cadoles/Jenkins/raw/branch/master/resources/com/cadoles/common/add-letsencrypt-ca.sh | bash