chore: update entrypoint

This commit is contained in:
Javier Martinez 2024-08-12 12:47:00 +02:00
parent fabc3f66bb
commit f73a36af2f
No known key found for this signature in database
3 changed files with 26 additions and 2 deletions

12
.docker/entrypoint.sh Normal file
View file

@ -0,0 +1,12 @@
#!/bin/bash
# Ensure correct ownership of the local_data directory
chown -R worker /home/worker/app/local_data
# Ensure correct ownership of the models directory if it exists
if [ -d "/home/worker/app/models" ]; then
chown -R worker /home/worker/app/models
fi
# Execute the command passed to the entrypoint
exec "$@"