vs_code_on_windows / Dockerfile
himanshu-711's picture
Create Dockerfile
fb9e014 verified
Raw
History Blame Contribute Delete
669 Bytes
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}