Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +26 -8
Dockerfile
CHANGED
@@ -1,12 +1,30 @@
|
|
1 |
-
# Use the
|
2 |
-
FROM
|
3 |
|
4 |
-
#
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
# Expose the SOCKS proxy port
|
8 |
-
EXPOSE
|
9 |
|
10 |
-
# Start the
|
11 |
-
|
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"]
|
|