fix(executor): use ephemeral cache dir instead of volume
Switch from /data volume to /tmp/deno-cache to avoid persistent permission issues.
This commit is contained in:
parent
44606e2b78
commit
cae05f1504
2 changed files with 5 additions and 5 deletions
|
|
@ -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 .
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue