From cae05f1504dba140a3abb0136d0201d604ff3497 Mon Sep 17 00:00:00 2001 From: Ajax Davis Date: Thu, 15 Jan 2026 09:30:02 +1000 Subject: [PATCH] fix(executor): use ephemeral cache dir instead of volume Switch from /data volume to /tmp/deno-cache to avoid persistent permission issues. --- apps/railway-executor/Dockerfile | 4 ++-- apps/railway-executor/start.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/railway-executor/Dockerfile b/apps/railway-executor/Dockerfile index e5a3675..be9ec9a 100644 --- a/apps/railway-executor/Dockerfile +++ b/apps/railway-executor/Dockerfile @@ -8,8 +8,8 @@ RUN apt-get update && apt-get install -y openssh-client && rm -rf /var/lib/apt/l # Set working directory WORKDIR /app -# Set Deno cache directory to use mounted volume -ENV DENO_DIR=/data +# Set Deno cache directory (ephemeral, rebuilds on restart) +ENV DENO_DIR=/tmp/deno-cache # Copy server file and startup script COPY server.ts . diff --git a/apps/railway-executor/start.sh b/apps/railway-executor/start.sh index ba32779..55c7a6b 100644 --- a/apps/railway-executor/start.sh +++ b/apps/railway-executor/start.sh @@ -1,7 +1,7 @@ #!/bin/bash -# Fix permissions on the Deno cache directory (runs as root) -mkdir -p /data -chown -R deno:deno /data +# Create Deno cache directory with correct permissions (runs as root) +mkdir -p /tmp/deno-cache +chown -R deno:deno /tmp/deno-cache # Switch to deno user and run the server exec su deno -c "deno run --allow-net --allow-env --allow-read --allow-write --allow-run server.ts"