Skip to content

Commit d29718f

Browse files
gluonfieldclaude
andcommitted
fix: mkdir /data dirs at runtime for S3-mounted volumes
The Dockerfile pre-creates /data/opencode and /data/workspaces but in production /data is replaced by an S3-backed mount at container start, so those directories vanish. Restore mkdir -p in the entrypoint so they exist before opencode tries to open its database. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 232f529 commit d29718f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set -e
44
: "${OPENROUTER_BASE_URL:?OPENROUTER_BASE_URL is required}"
55
: "${OPENROUTER_API_KEY:?OPENROUTER_API_KEY is required}"
66

7+
mkdir -p /data/opencode /data/workspaces
78
export OPENCODE_DB=/data/opencode/opencode.db
89

910
cat > /home/sandbox/.config/opencode/opencode.json <<EOF

0 commit comments

Comments
 (0)