Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -15,8 +15,8 @@ RUN mkdir -p /.config && chmod -R 777 /.config
|
|
15 |
# 引入设置中创建的secret变量
|
16 |
RUN --mount=type=secret,id=password,mode=0444,required=true cat /run/secrets/password > /run/passwd
|
17 |
# RUN ls /.config/ && cat /.config/code-server/config.yaml
|
18 |
-
ENV
|
19 |
-
CMD ["code-server", "--bind-addr", "0.0.0.0:8080"
|
20 |
# CMD code-server --help
|
21 |
# code-server项目仓库:https://github.com/cdr/code-server
|
22 |
# hugging face docker 权限问题和环境变量的引用需了解:https://huggingface.co/docs/hub/spaces-sdks-docker
|
|
|
15 |
# 引入设置中创建的secret变量
|
16 |
RUN --mount=type=secret,id=password,mode=0444,required=true cat /run/secrets/password > /run/passwd
|
17 |
# RUN ls /.config/ && cat /.config/code-server/config.yaml
|
18 |
+
ENV CODE_SERVER_PASSWORD="zxcvbnm"
|
19 |
+
CMD ["code-server", "--bind-addr", "0.0.0.0:8080"]
|
20 |
# CMD code-server --help
|
21 |
# code-server项目仓库:https://github.com/cdr/code-server
|
22 |
# hugging face docker 权限问题和环境变量的引用需了解:https://huggingface.co/docs/hub/spaces-sdks-docker
|