Files
tiennm99 a63c121075 feat(code-server): give the workspace its own volume
The workspace moves off the config volume onto code-server-workspace, so
wiping editor state and wiping code are separate acts.

The image only ever chowns the literal path /config/workspace, and reads
DEFAULT_WORKSPACE to pick the folder to open, so a named volume on /workspace
would come up root-owned and unwritable. Creating the directory in a local
Dockerfile seeds the volume with the right ownership instead.
2026-09-18 17:38:07 +07:00

5 lines
151 B
Docker

FROM lscr.io/linuxserver/code-server:latest
# Workspace directory, owned by the container user.
RUN mkdir -p /workspace && chown 1000:1000 /workspace