Build [v1.10.2]
This commit is contained in:
@@ -26,6 +26,12 @@ bash /app/scripts/init_data.sh
|
||||
# Fix permissions for mounted volumes (which might be root-owned by the host)
|
||||
echo "🐳 [Docker] Fixing volume permissions..."
|
||||
chown -R appuser:appuser "${DATA_DIR}" "${LOGS_DIR}"
|
||||
chmod -R 770 "${DATA_DIR}" "${LOGS_DIR}"
|
||||
|
||||
# Verify logic: Ensure appuser can actually write before we hand off
|
||||
echo "🐳 [Docker] Verifying directory writability..."
|
||||
gosu appuser touch "${LOGS_DIR}/.startup_test" && rm "${LOGS_DIR}/.startup_test"
|
||||
gosu appuser touch "${DATA_DIR}/.startup_test" && rm "${DATA_DIR}/.startup_test"
|
||||
|
||||
# Hand off to the application server as non-root user
|
||||
echo "🐳 [Docker] Starting uvicorn as appuser..."
|
||||
|
||||
Reference in New Issue
Block a user