Update Dockerfile
Browse files- Dockerfile +12 -6
Dockerfile
CHANGED
@@ -1,6 +1,12 @@
|
|
1 |
-
|
2 |
-
docker-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Pull the Shadowsocks Docker image
|
2 |
+
sudo docker pull shadowsocks/shadowsocks-libev
|
3 |
+
|
4 |
+
# Run the Shadowsocks Docker container on port 7860
|
5 |
+
sudo docker run -d --name ss-server -p 7860:8388 -e PASSWORD=your_password -e SERVER_PORT=7860 shadowsocks/shadowsocks-libev
|
6 |
+
|
7 |
+
# Retrieve the public IP address of the server
|
8 |
+
SERVER_IP=$(curl -s ifconfig.me)
|
9 |
+
|
10 |
+
# Display the Shadowsocks server IP and port
|
11 |
+
echo "Your Shadowsocks server IP is: $SERVER_IP"
|
12 |
+
echo "Your Shadowsocks server port is: 7860"
|