shashwatIDR commited on
Commit
302742c
·
verified ·
1 Parent(s): df35784

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -5
Dockerfile CHANGED
@@ -1,19 +1,23 @@
1
  FROM codercom/code-server:latest
2
 
 
 
 
3
  # Install Python and Node.js
4
  RUN sudo apt-get update && \
5
  sudo apt-get install -y python3 python3-pip curl && \
6
  curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - && \
7
  sudo apt-get install -y nodejs
8
 
9
- # Create working folder
10
  WORKDIR /home/coder/animesh
11
 
12
- # Set default password for VS Code in browser
13
- ENV PASSWORD=hfspace
 
14
 
15
  # Expose port for Hugging Face Spaces
16
  EXPOSE 7860
17
 
18
- # Launch VS Code server
19
- CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "."]
 
1
  FROM codercom/code-server:latest
2
 
3
+ # Disable fixuid (optional, avoids warnings)
4
+ ENV DISABLE_FIXUID=true
5
+
6
  # Install Python and Node.js
7
  RUN sudo apt-get update && \
8
  sudo apt-get install -y python3 python3-pip curl && \
9
  curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - && \
10
  sudo apt-get install -y nodejs
11
 
12
+ # Set working directory
13
  WORKDIR /home/coder/animesh
14
 
15
+ # Disable code-server authentication completely
16
+ ENV AUTH=none
17
+ ENV PASSWORD=""
18
 
19
  # Expose port for Hugging Face Spaces
20
  EXPOSE 7860
21
 
22
+ # Start VS Code server with no authentication
23
+ CMD ["code-server", "--auth=none", "--bind-addr", "0.0.0.0:7860", "."]