LAST233 commited on
Commit
4881262
·
verified ·
1 Parent(s): 960c44e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -49,6 +49,9 @@ 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
  # 设置工作目录和用户
53
  WORKDIR /home/coder
54
 
@@ -74,9 +77,6 @@ RUN /home/coder/create_languagepacks.sh
74
  RUN git clone https://github.com/Save-it/cpp_competition.git /home/coder/cpp_competition && \
75
  echo '*.exe \n *.out' > /home/coder/cpp_competition/.gitignore
76
 
77
- # 将 /home/coder 下所有文件的所有权移交给 coder 用户
78
- RUN chown -R coder:coder /home/coder
79
-
80
  # 暴露端口
81
  EXPOSE 8080
82
  EXPOSE 7860
 
49
  exec code-server /home/coder/cpp_competition' > /home/coder/start.sh
50
  RUN chmod +x /home/coder/start.sh
51
 
52
+ # 将 /home/coder 下所有文件的所有权移交给 coder 用户
53
+ RUN chown -R coder:coder /home/coder
54
+
55
  # 设置工作目录和用户
56
  WORKDIR /home/coder
57
 
 
77
  RUN git clone https://github.com/Save-it/cpp_competition.git /home/coder/cpp_competition && \
78
  echo '*.exe \n *.out' > /home/coder/cpp_competition/.gitignore
79
 
 
 
 
80
  # 暴露端口
81
  EXPOSE 8080
82
  EXPOSE 7860