Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -9,8 +9,7 @@ RUN { \
|
|
9 |
echo "logoutput: stderr"; \
|
10 |
echo "internal: 0.0.0.0 port = 1080"; \
|
11 |
echo "external: eth0"; \
|
12 |
-
echo "
|
13 |
-
echo "clientmethod: none"; \
|
14 |
echo "user.privileged: root"; \
|
15 |
echo "user.notprivileged: nobody"; \
|
16 |
echo "client pass {"; \
|
@@ -26,5 +25,9 @@ RUN { \
|
|
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"]
|
|
|
9 |
echo "logoutput: stderr"; \
|
10 |
echo "internal: 0.0.0.0 port = 1080"; \
|
11 |
echo "external: eth0"; \
|
12 |
+
echo "socksmethod: none"; \ # Updated from 'method' to 'socksmethod'
|
|
|
13 |
echo "user.privileged: root"; \
|
14 |
echo "user.notprivileged: nobody"; \
|
15 |
echo "client pass {"; \
|
|
|
25 |
# Expose the SOCKS proxy port
|
26 |
EXPOSE 1080
|
27 |
|
28 |
+
# Set capabilities and permissions
|
29 |
+
RUN setcap 'CAP_NET_BIND_SERVICE=+eip CAP_NET_ADMIN=+eip' /usr/sbin/sockd && \
|
30 |
+
chmod 644 /etc/sockd.conf
|
31 |
+
|
32 |
# Start the dante-server using the configuration file
|
33 |
CMD ["sockd", "-f", "/etc/sockd.conf"]
|