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"