Update Dockerfile
Browse files- Dockerfile +2 -6
Dockerfile
CHANGED
|
@@ -7,12 +7,8 @@ RUN apk add --no-cache bash git build-base
|
|
| 7 |
RUN git clone https://github.com/rofl0r/microsocks.git && \
|
| 8 |
cd microsocks && make && mv microsocks /usr/local/bin/ && chmod +x /usr/local/bin/microsocks
|
| 9 |
|
| 10 |
-
# 设置 SOCKS5 用户名和密码(可通过 docker run -e 覆盖)
|
| 11 |
-
ENV USERNAME=user
|
| 12 |
-
ENV PASSWORD='pass@1234'
|
| 13 |
-
|
| 14 |
# 暴露端口
|
| 15 |
EXPOSE 7860
|
| 16 |
|
| 17 |
-
# 启动 microsocks,
|
| 18 |
-
ENTRYPOINT ["sh", "-c", "echo '>>>
|
|
|
|
| 7 |
RUN git clone https://github.com/rofl0r/microsocks.git && \
|
| 8 |
cd microsocks && make && mv microsocks /usr/local/bin/ && chmod +x /usr/local/bin/microsocks
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
# 暴露端口
|
| 11 |
EXPOSE 7860
|
| 12 |
|
| 13 |
+
# 启动 microsocks,无用户名密码
|
| 14 |
+
ENTRYPOINT ["sh", "-c", "echo '>>> Starting microsocks without authentication'; exec microsocks -p 7860"]
|