mirror of
https://github.com/tiennm99/composes.git
synced 2026-10-04 22:13:26 +00:00
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.
5 lines
151 B
Docker
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
|