-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
22 lines (17 loc) · 953 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ubuntu:latest
LABEL maintainer="Rob Asher"
LABEL version="4.7.0.8"
LABEL release-date="2024-10-30"
LABEL source="https://github.com/DeepWoods/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 openjdk-11-jre-headless \
&& curl $(printf ' -O http://pub.nxfilter.org/nxfilter-%s.deb' $(curl https://nxfilter.org/curver.php)) \
&& apt -y install --no-install-recommends ./$(printf 'nxfilter-%s.deb' $(curl https://nxfilter.org/curver.php)) \
&& apt -y clean autoclean \
&& apt -y autoremove \
&& rm -rf ./$(printf 'nxfilter-%s.deb' $(curl https://nxfilter.org/curver.php)) \
&& rm -rf /var/lib/apt && rm -rf /var/lib/dpkg && rm -rf /var/lib/cache && rm -rf /var/lib/log \
&& echo "$(curl https://nxfilter.org/curver.php)" > /nxfilter/version.txt
EXPOSE 53/udp 19004/udp 80 443 19002 19003 19004
CMD ["/nxfilter/bin/startup.sh"]