mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2024-11-25 17:23:48 +01:00
56 lines
1.7 KiB
Docker
56 lines
1.7 KiB
Docker
# syntax=docker/dockerfile:1
|
|
FROM alpine:3.14
|
|
|
|
ARG MAJOR_VERSION=5.0
|
|
ARG ZBX_VERSION=${MAJOR_VERSION}.32
|
|
|
|
ENV TERM=xterm \
|
|
ZBX_VERSION=${ZBX_VERSION} \
|
|
PATH=/usr/lib/jvm/default-jvm/bin:$PATH \
|
|
JAVA_HOME=/usr/lib/jvm/default-jvm
|
|
|
|
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" \
|
|
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 && \
|
|
INSTALL_PKGS="bash \
|
|
autoconf \
|
|
automake \
|
|
coreutils \
|
|
curl \
|
|
curl-dev \
|
|
libevent-dev \
|
|
libssh-dev \
|
|
sqlite-dev \
|
|
libxml2-dev \
|
|
mysql-dev \
|
|
net-snmp-dev \
|
|
openipmi-dev \
|
|
openldap-dev \
|
|
openssl-dev \
|
|
pcre-dev \
|
|
postgresql-dev \
|
|
openjdk8 \
|
|
gettext \
|
|
git \
|
|
g++ \
|
|
make \
|
|
openjdk8-jre-base \
|
|
unixodbc-dev" && \
|
|
apk add \
|
|
--no-cache \
|
|
--clean-protected \
|
|
${INSTALL_PKGS} && \
|
|
apk add \
|
|
--no-cache \
|
|
--clean-protected \
|
|
--repository=http://dl-cdn.alpinelinux.org/alpine/edge/community \
|
|
go && \
|
|
rm -rf /var/cache/apk/*
|