bla commited on
Commit
ae146fa
·
verified ·
1 Parent(s): 4bfb699

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -15
Dockerfile CHANGED
@@ -5,21 +5,23 @@ FROM alpine:latest
5
  RUN apk add --no-cache dante-server
6
 
7
  # Create a simple configuration file for dante-server
8
- RUN echo "logoutput: stderr\n\
9
- internal: 0.0.0.0 port = 1080\n\
10
- external: 0.0.0.0\n\
11
- method: none\n\
12
- clientmethod: none\n\
13
- user.privileged: root\n\
14
- user.notprivileged: nobody\n\
15
- client pass {\n\
16
- from: 0.0.0.0/0 to: 0.0.0.0/0\n\
17
- log: connect disconnect error\n\
18
- }\n\
19
- socks pass {\n\
20
- from: 0.0.0.0/0 to: 0.0.0.0/0\n\
21
- log: connect disconnect error\n\
22
- }" > /etc/sockd.conf
 
 
23
 
24
  # Expose the SOCKS proxy port
25
  EXPOSE 1080
 
5
  RUN apk add --no-cache dante-server
6
 
7
  # Create a simple configuration file for dante-server
8
+ RUN { \
9
+ echo "logoutput: stderr"; \
10
+ echo "internal: 0.0.0.0 port = 1080"; \
11
+ echo "external: 0.0.0.0"; \
12
+ echo "method: none"; \
13
+ echo "clientmethod: none"; \
14
+ echo "user.privileged: root"; \
15
+ echo "user.notprivileged: nobody"; \
16
+ echo "client pass {"; \
17
+ echo " from: 0.0.0.0/0 to: 0.0.0.0/0"; \
18
+ echo " log: connect disconnect error"; \
19
+ echo "}"; \
20
+ echo "socks pass {"; \
21
+ echo " from: 0.0.0.0/0 to: 0.0.0.0/0"; \
22
+ echo " log: connect disconnect error"; \
23
+ echo "}"; \
24
+ } > /etc/sockd.conf
25
 
26
  # Expose the SOCKS proxy port
27
  EXPOSE 1080