ThongCoder commited on
Commit
14b28f4
·
verified ·
1 Parent(s): 57e659b

Update entrypoint.py

Browse files
Files changed (1) hide show
  1. entrypoint.py +5 -4
entrypoint.py CHANGED
@@ -16,10 +16,11 @@ threading.Thread(target=schedule_backups, daemon=True).start()
16
  # Write config.yaml dynamically
17
  os.makedirs("/home/coder/.config/code-server", exist_ok=True)
18
  with open("/home/coder/.config/code-server/config.yaml", "w") as f:
19
- f.write(f"bind-addr: 0.0.0.0:7860\\n")
20
- f.write("auth: password\\n")
21
- f.write(f"password: {password}\\n")
22
- f.write("cert: false\\n")
 
23
 
24
  # Run code-server
25
  cmd = [
 
16
  # Write config.yaml dynamically
17
  os.makedirs("/home/coder/.config/code-server", exist_ok=True)
18
  with open("/home/coder/.config/code-server/config.yaml", "w") as f:
19
+ f.write(f"""bind-addr: 0.0.0.0:7860
20
+ auth: password
21
+ password: {password}
22
+ cert: false
23
+ """)
24
 
25
  # Run code-server
26
  cmd = [