File size: 669 Bytes
fb9e014
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM lscr.io/linuxserver/code-server:latest

# HF Spaces routing expects your app on 7860
EXPOSE 7860

# Optional: better timezone for logs (change if you want)
ENV TZ=Asia/Kolkata

# Put code-server config + workspace in /data so it persists IF you enabled persistent storage
# HF mounts persistent disk at /data when enabled in Space Settings. :contentReference[oaicite:3]{index=3}
ENV DEFAULT_WORKSPACE=/data/workspace

# IMPORTANT:
# - If PASSWORD is not set, code-server may run without auth (not recommended).
# - We'll set PASSWORD via HF Space Secrets.
# linuxserver/code-server supports PASSWORD/HASHED_PASSWORD env vars. :contentReference[oaicite:4]{index=4}