Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,15 @@ COPY --from=builder /build/ui/vite.config.js ui/vite.config.js

# Create PilotDeck state/workspace directories used by the gateway, UI server,
# permissions, skills/plugins, memory, auth, and router stats.
# Also create docker-entrypoint.d/ for user-provided init scripts.
RUN mkdir -p \
/root/.pilotdeck/projects \
/root/.pilotdeck/router \
/root/.pilotdeck/skills \
/root/.pilotdeck/plugins \
/root/.pilotdeck/memory \
/workspace
/workspace \
/docker-entrypoint.d

# Entrypoint
COPY docker-entrypoint.sh /docker-entrypoint.sh
Expand Down
11 changes: 11 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,17 @@ echo "[pilotdeck-docker] Starting PilotDeck (gateway + UI server)..."
echo "[pilotdeck-docker] Config: $CONFIG_FILE"
echo "[pilotdeck-docker] UI will be available at http://0.0.0.0:${SERVER_PORT:-3001}"

# ── Run user-provided init scripts from /docker-entrypoint.d/ ─────────
if [ -d /docker-entrypoint.d ]; then
for f in $(find /docker-entrypoint.d -maxdepth 1 -type f \( -name '*.sh' -o -perm /u+x,g+x,o+x \) | sort); do
if [ -f "$f" ] && [ -r "$f" ]; then
echo "[pilotdeck-docker] Running init script: $f"
# shellcheck disable=SC1090
. "$f"
fi
done
fi

# ── Start gateway + UI server via concurrently ────────────────────────
cd /app

Expand Down