forked from DeepWoods/nxfilter-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 967 Bytes
/
Dockerfile
File metadata and controls
27 lines (21 loc) · 967 Bytes
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
ARG BASE_IMAGE=ubuntu:latest
FROM ${BASE_IMAGE}
ARG VER_NUM=4.7.4.5
ARG BUILD_DATE=$(date +%Y-%m-%d)
LABEL maintainer="Rob Asher, forked by ZorbaTheRainy to provide tags"
LABEL version=${VER_NUM}
LABEL release-date=${BUILD_TIME}
LABEL source="https://github.com/zorbaTheRainy/nxfilter-docker"
ENV TZ=${TZ:-Etc/UTC}
RUN apt -y update && apt -y upgrade \
&& apt -y install --no-install-recommends dnsutils iputils-ping tzdata curl \
&& apt -y install --no-install-recommends openjdk-21-jre-headless \
&& curl -O http://pub.nxfilter.org/nxfilter-${VER_NUM}.deb \
&& apt -y install --no-install-recommends ./nxfilter-${VER_NUM}.deb \
&& apt -y clean autoclean \
&& apt -y autoremove \
&& rm -rf ./nxfilter-${VER_NUM}.deb \
&& rm -rf /var/lib/apt && rm -rf /var/lib/dpkg && rm -rf /var/lib/cache && rm -rf /var/lib/log \
&& echo "${VER_NUM}" > /nxfilter/version.txt
EXPOSE 53/udp 19004/udp 80 443 19002 19003 19004
CMD ["/nxfilter/bin/startup.sh"]