Some checks failed
Build and publish docker image / Builds the image and publishes to docker hub (push) Has been cancelled
Reviewed-on: https://git.avroid.tech/Docker/doxygen/pulls/1 Reviewed-by: Denis Patrakeev <denis.patrakeev@avroid.team>
42 lines
1.7 KiB
Docker
42 lines
1.7 KiB
Docker
ARG DOCKER_REGISTRY=harbor.avroid.tech/docker-hub-proxy
|
|
|
|
FROM ${DOCKER_REGISTRY}/ubuntu:24.04
|
|
LABEL description="Base build image based on ubuntu 24.04"
|
|
|
|
# Disable output interactive dialogs in console for service commands
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
ENV PLANTUML="1.2025.0"
|
|
ENV TZ="Europe/Moscow"
|
|
|
|
# Nexus
|
|
ARG NEXUS_DOMAIN_NAME="nexus.avroid.tech"
|
|
ARG NEXUS_URL="https://${NEXUS_DOMAIN_NAME}"
|
|
|
|
# swap basic os repos to nexus mirrors https://nexus.avroid.tech
|
|
RUN sed -ie "s/deb\ http\:\/\/archive.ubuntu.com\/ubuntu/deb\ [trusted=yes] https\:\/\/${NEXUS_DOMAIN_NAME}\/repository\/mirror-os-apt-ubuntu/g" /etc/apt/sources.list && \
|
|
sed -ie "s/deb\ http\:\/\/security.ubuntu.com\/ubuntu/deb\ [trusted=yes] https\:\/\/${NEXUS_DOMAIN_NAME}\/repository\/mirror-os-apt-ubuntu/g" /etc/apt/sources.list && \
|
|
echo "Acquire::https::${NEXUS_DOMAIN_NAME}::Verify-Peer \"false\";" > /etc/apt/apt.conf.d/99nexus_proxy_cert && \
|
|
apt update && \
|
|
apt install -y ca-certificates && \
|
|
apt update && \
|
|
apt clean && \
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
# Set timezone on Ubuntu
|
|
RUN apt update && \
|
|
apt install -y --no-install-recommends tzdata && \
|
|
ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime && \
|
|
dpkg-reconfigure -f noninteractive tzdata && \
|
|
apt clean && \
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
# Upgrade OS in container
|
|
RUN apt update && \
|
|
apt install -y --no-install-recommends apt-utils && \
|
|
apt install doxygen wget graphviz default-jdk -y && \
|
|
apt dist-upgrade -y && \
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp*
|
|
|
|
USER ubuntu
|
|
RUN wget https://github.com/plantuml/plantuml/releases/download/v${PLANTUML}/plantuml-${PLANTUML}.jar -P /home/ubuntu
|