bla commited on
Commit
2468dac
·
verified ·
1 Parent(s): 6e22a0e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -8
Dockerfile CHANGED
@@ -1,12 +1,30 @@
1
- # Use the dperson/socks-proxy image as the base
2
- FROM dperson/socks-proxy:latest
3
 
4
- # Set environment variables (optional)
5
- ENV SOCKS_PORT=1080
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
 
7
  # Expose the SOCKS proxy port
8
- EXPOSE ${SOCKS_PORT}
9
 
10
- # Start the SOCKS proxy without authentication
11
- ENTRYPOINT ["/usr/local/bin/sockd"]
12
- CMD ["-N"]
 
1
+ # Use the lightweight Alpine Linux as the base image
2
+ FROM alpine:latest
3
 
4
+ # Install dante-server
5
+ RUN apk add --no-cache dante-server
6
+
7
+ # Create a simple configuration file for dante-server
8
+ RUN echo "
9
+ logoutput: stderr
10
+ internal: 0.0.0.0 port = 1080
11
+ external: 0.0.0.0
12
+ method: none
13
+ clientmethod: none
14
+ user.privileged: root
15
+ user.notprivileged: nobody
16
+ client pass {
17
+ from: 0.0.0.0/0 to: 0.0.0.0/0
18
+ log: connect disconnect error
19
+ }
20
+ socks pass {
21
+ from: 0.0.0.0/0 to: 0.0.0.0/0
22
+ log: connect disconnect error
23
+ }
24
+ " > /etc/sockd.conf
25
 
26
  # Expose the SOCKS proxy port
27
+ EXPOSE 1080
28
 
29
+ # Start the dante-server using the configuration file
30
+ CMD ["sockd", "-f", "/etc/sockd.conf"]