Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -39,7 +39,8 @@ RUN echo '#!/bin/bash\n\
|
|
| 39 |
# 1. 启动 frpc (后台运行)\n\
|
| 40 |
# /usr/local/bin/frpc -f ${FRP_TOKEN} &\n\
|
| 41 |
# 2. 前台启动 code-server (保持容器运行)\n\
|
| 42 |
-
git remote set-url origin https://${GH_TOKEN}@github.com/${GH_USERNAME}/
|
|
|
|
| 43 |
exec code-server /home/coder/cpp_competition' > /home/coder/start.sh
|
| 44 |
RUN chmod +x /home/coder/start.sh
|
| 45 |
|
|
|
|
| 39 |
# 1. 启动 frpc (后台运行)\n\
|
| 40 |
# /usr/local/bin/frpc -f ${FRP_TOKEN} &\n\
|
| 41 |
# 2. 前台启动 code-server (保持容器运行)\n\
|
| 42 |
+
git remote set-url origin https://${GH_TOKEN}@github.com/${GH_USERNAME}/${HUB_NAME}.git \n\
|
| 43 |
+
git clone https://github.com/${GH_USERNAME}/${HUB_NAME}.git
|
| 44 |
exec code-server /home/coder/cpp_competition' > /home/coder/start.sh
|
| 45 |
RUN chmod +x /home/coder/start.sh
|
| 46 |
|