-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
44 lines (38 loc) · 1.16 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-alpine:3.20
ARG BUILD_DATE
ARG VERSION
ARG SYSLOG_NG_VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="thespad"
RUN \
echo "**** install packages ****" && \
if [ -z ${SYSLOG_NG_VERSION+x} ]; then \
SYSLOG_NG_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
&& awk '/^P:syslog-ng$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
fi && \
apk add -U --upgrade --no-cache \
grep \
libdbi-drivers \
paho-mqtt-c \
syslog-ng==${SYSLOG_NG_VERSION} \
syslog-ng-add-contextual-data \
syslog-ng-amqp \
syslog-ng-graphite \
syslog-ng-http \
syslog-ng-json \
syslog-ng-map-value-pairs \
syslog-ng-python \
syslog-ng-redis \
syslog-ng-scl \
syslog-ng-sql \
syslog-ng-stardate \
syslog-ng-stomp \
syslog-ng-tags-parser \
syslog-ng-xml && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
rm -rf \
/tmp/*
COPY root/ /
EXPOSE 5514/udp 6601/tcp 6514/tcp
VOLUME /config