fix: Set ownership for deno-dir in Docker entrypoint script

This commit is contained in:
2024-12-25 15:48:01 +08:00
parent fa9a9b5ef2
commit 5131515770
2 changed files with 2 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
"lock": false,
"importMap": "./import_map.json",
"tasks": {
"cache": "deno cache main.ts server-dev.ts",
"cache": "deno cache main.ts server-dev.ts server-run.ts",
"server-dev": "deno run -A \"--watch=static/*.css,static/*.ts,static/*/,routes/,translation/\" server-dev.ts",
"server": "deno run -A server-run.ts",
"test": "deno test --allow-read --allow-net --allow-write --allow-ffi --allow-run=tasklist.exe --allow-env",

View File

@@ -6,5 +6,6 @@ if [ $? -ne 0 ]; then
su root -c "groupadd -g $(id -g) eh"
fi
su root -c "useradd -g $(id -g) -m -s /bin/bash -u $(id -u) eh"
su root -c "chown -R eh /deno-dir"
fi
deno task server