Skip to content

Commit bfaff7a

Browse files
mohsin-wiserclaude
andcommitted
fix: simplify dockerfile by moving directory creation to entrypoint
Removes code-server and vscode-server directory creation from Dockerfile to avoid permission issues during multi-platform builds. These directories are now only created in entrypoint.sh which: - Runs as root - Creates directories with correct ownership - Runs on every container start This approach is more reliable as entrypoint.sh can use mkdir -p and chown without permission conflicts that occur during image build. Fixes multi-platform build failures on arm64 architecture. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 6971cb0 commit bfaff7a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@ RUN rm -rf /tmp/backend /tmp/root /tmp/frontend
177177
# Pre-create user directories to avoid permission issues in post-create
178178
USER vscode
179179
RUN mkdir -p ~/.m2/repository ~/.m2/wrapper/dists ~/.npm ~/.cache/ms-playwright \
180-
&& mkdir -p ~/.local/share && chmod 755 ~/.local \
181-
&& mkdir -p ~/.local/share/code-server ~/.config/code-server \
182-
&& mkdir -p ~/.vscode-server/bin ~/.vscode-server/extensions \
183-
&& chmod -R 755 ~/.m2 ~/.npm ~/.cache ~/.local ~/.config ~/.vscode-server
180+
&& chmod -R 755 ~/.m2 ~/.npm ~/.cache
181+
182+
# Note: code-server and vscode-server directories are created in entrypoint.sh
183+
# as root to avoid permission issues during image build
184184

185185
# Reset working directory and user
186186
USER root

0 commit comments

Comments
 (0)