-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (24 loc) · 810 Bytes
/
Dockerfile
File metadata and controls
32 lines (24 loc) · 810 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
28
29
30
31
32
FROM 1science/java:oracle-jre-8
MAINTAINER Charles Gunzelman "cgunzelman@gmail.com"
LABEL org.label-schema.docker.dockerfile="/Dockerfile" \
org.label-schema.vcs-type="Git" \
org.label-schema.vcs-url="https://github.com/packetworks/docker-nxfilter"
# Include the SSL-Split binary, not used by default.
COPY --from=vimagick/sslsplit /usr/local/bin/sslsplit /usr/local/bin/
COPY entrypoint.sh url.txt /
# Fix DNS
# RUN apk add --update bind-tools
# Download and extract nxfilter
RUN xargs </url.txt curl -o nxfilter.zip -s \
&& mkdir /nxfilter \
&& unzip -q nxfilter.zip -d /nxfilter \
&& chmod +x /nxfilter/bin/startup.sh \
&& rm -f nxfilter.zip
EXPOSE 80
EXPOSE 443
EXPOSE 53/udp
EXPOSE 19002
EXPOSE 19003
EXPOSE 19004
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/nxfilter/bin/startup.sh"]