Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -7
Dockerfile
CHANGED
|
@@ -49,6 +49,12 @@ RUN echo '#!/bin/bash\n\
|
|
| 49 |
exec code-server /home/coder/cpp_competition' > /home/coder/start.sh
|
| 50 |
RUN chmod +x /home/coder/start.sh
|
| 51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
# 配置codeserver的语言和扩展
|
| 53 |
COPY settings.json /home/coder/.local/share/code-server/User/
|
| 54 |
COPY config.yaml /home/coder/.config/code-server/
|
|
@@ -63,7 +69,7 @@ RUN code-server --install-extension /home/coder/cph-ng-0.5.5.vsix && \
|
|
| 63 |
code-server --install-extension formulahendry.code-runner && \
|
| 64 |
code-server --install-extension llvm-vs-code-extensions.vscode-clangd
|
| 65 |
|
| 66 |
-
|
| 67 |
|
| 68 |
# 配置git
|
| 69 |
RUN git clone https://github.com/Save-it/cpp_competition.git /home/coder/cpp_competition && \
|
|
@@ -72,12 +78,6 @@ RUN git clone https://github.com/Save-it/cpp_competition.git /home/coder/cpp_com
|
|
| 72 |
# 将 /home/coder 下所有文件的所有权移交给 coder 用户
|
| 73 |
RUN chown -R coder:coder /home/coder
|
| 74 |
|
| 75 |
-
# 设置工作目录和用户
|
| 76 |
-
WORKDIR /home/coder
|
| 77 |
-
|
| 78 |
-
# 切换回coder用户
|
| 79 |
-
USER coder
|
| 80 |
-
|
| 81 |
# 暴露端口
|
| 82 |
EXPOSE 8080
|
| 83 |
EXPOSE 7860
|
|
|
|
| 49 |
exec code-server /home/coder/cpp_competition' > /home/coder/start.sh
|
| 50 |
RUN chmod +x /home/coder/start.sh
|
| 51 |
|
| 52 |
+
# 设置工作目录和用户
|
| 53 |
+
WORKDIR /home/coder
|
| 54 |
+
|
| 55 |
+
# 切换回coder用户
|
| 56 |
+
USER coder
|
| 57 |
+
|
| 58 |
# 配置codeserver的语言和扩展
|
| 59 |
COPY settings.json /home/coder/.local/share/code-server/User/
|
| 60 |
COPY config.yaml /home/coder/.config/code-server/
|
|
|
|
| 69 |
code-server --install-extension formulahendry.code-runner && \
|
| 70 |
code-server --install-extension llvm-vs-code-extensions.vscode-clangd
|
| 71 |
|
| 72 |
+
RUN /home/coder/create_languagepacks.sh
|
| 73 |
|
| 74 |
# 配置git
|
| 75 |
RUN git clone https://github.com/Save-it/cpp_competition.git /home/coder/cpp_competition && \
|
|
|
|
| 78 |
# 将 /home/coder 下所有文件的所有权移交给 coder 用户
|
| 79 |
RUN chown -R coder:coder /home/coder
|
| 80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
# 暴露端口
|
| 82 |
EXPOSE 8080
|
| 83 |
EXPOSE 7860
|