zabbix-docker/Dockerfiles/build-base/alpine/Dockerfile

54 lines
1.6 KiB
Docker
Raw Normal View History

# syntax=docker/dockerfile:1
2023-12-13 06:29:00 +01:00
FROM alpine:3.19
2023-03-07 09:07:13 +01:00
ARG MAJOR_VERSION=7.0
ARG ZBX_VERSION=${MAJOR_VERSION}
2021-10-16 17:49:19 +02:00
ENV TERM=xterm \
ZBX_VERSION=${ZBX_VERSION} \
2021-09-14 04:55:24 +02:00
PATH=/usr/lib/jvm/default-jvm/bin:$PATH \
2021-09-14 01:18:41 +02:00
JAVA_HOME=/usr/lib/jvm/default-jvm
2021-10-16 17:49:19 +02:00
LABEL org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
org.opencontainers.image.description="Zabbix build base image contains all required packages to build Zabbix images" \
org.opencontainers.image.documentation="https://www.zabbix.com/documentation/${MAJOR_VERSION}/manual/installation/containers" \
2021-10-16 17:49:19 +02:00
org.opencontainers.image.licenses="GPL v2.0" \
org.opencontainers.image.title="Zabbix build base" \
org.opencontainers.image.url="https://zabbix.com/" \
org.opencontainers.image.vendor="Zabbix LLC" \
org.opencontainers.image.version="${ZBX_VERSION}"
RUN set -eux && \
2021-10-16 17:49:19 +02:00
INSTALL_PKGS="bash \
autoconf \
automake \
coreutils \
curl \
curl-dev \
libevent-dev \
libssh-dev \
sqlite-dev \
libmodbus-dev \
libxml2-dev \
mysql-dev \
net-snmp-dev \
openipmi-dev \
openldap-dev \
2021-10-12 02:08:40 +02:00
openssl-dev \
patch \
2022-01-22 13:44:37 +01:00
pcre2-dev \
postgresql-dev \
2023-09-20 11:13:10 +02:00
openjdk17 \
gettext \
git \
g++ \
2021-09-14 02:49:22 +02:00
go \
make \
2023-09-20 11:13:10 +02:00
openjdk17-jre-headless \
2021-10-16 17:49:19 +02:00
unixodbc-dev" && \
apk add \
--no-cache \
--clean-protected \
${INSTALL_PKGS} && \
2021-09-14 00:12:27 +02:00
rm -rf /var/cache/apk/*