AkshitShubham commited on
Commit
fdd4808
·
verified ·
1 Parent(s): 1d47c27

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -7,16 +7,16 @@ RUN apt-get update && apt-get install -y \
7
 
8
  RUN curl -fsSL https://code-server.dev/install.sh | sh
9
 
10
- # Pre-create and chown config/cache dirs for code-server
 
 
 
11
  RUN mkdir -p /root/.config/code-server \
12
  /root/.local/share/code-server \
13
- /root/.cache/code-server \
14
- && chown -R 1000:1000 /root/.config /root/.local /root/.cache
15
 
16
- RUN mkdir -p /workspace
17
  WORKDIR /workspace
18
-
19
- # (Optional) Create README, etc.
20
 
21
  EXPOSE 7860
22
 
 
7
 
8
  RUN curl -fsSL https://code-server.dev/install.sh | sh
9
 
10
+ # Set HOME to /root so code-server doesn't try /.config
11
+ ENV HOME=/root
12
+
13
+ # Pre-create config dirs
14
  RUN mkdir -p /root/.config/code-server \
15
  /root/.local/share/code-server \
16
+ /root/.cache/code-server
 
17
 
 
18
  WORKDIR /workspace
19
+ RUN mkdir -p /workspace
 
20
 
21
  EXPOSE 7860
22