Dockerfile and Docker compose

This commit is contained in:
Christoph Walther
2024-07-16 14:03:13 +02:00
parent 843daf8a35
commit ca84202168
12 changed files with 393 additions and 12 deletions

16
entrypoint.sh Normal file
View File

@ -0,0 +1,16 @@
#!/bin/bash
set -e
# Überprüfen, ob die Datenbank eingerichtet werden muss
if [ -f /codeocean/tmp/pids/server.pid ]; then
rm /codeocean/tmp/pids/server.pid
fi
# Führen Sie db:setup nur aus, wenn es notwendig ist
bundle exec rake db:prepare
# Main process is the following command
echo "Starting the main process with the following command: $@"
# Starten Sie den Hauptprozess
exec "$@"