Initial Commit

This commit is contained in:
hannah.dagemark 2025-05-06 11:00:42 +02:00
commit eacb6f444a
109 changed files with 2842 additions and 0 deletions

14
bin/docker-entrypoint Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash -e
# Enable jemalloc for reduced memory usage and latency.
if [ -z "${LD_PRELOAD+x}" ]; then
LD_PRELOAD=$(find /usr/lib -name libjemalloc.so.2 -print -quit)
export LD_PRELOAD
fi
# If running the rails server then create or migrate existing database
if [ "${@: -2:1}" == "./bin/rails" ] && [ "${@: -1:1}" == "server" ]; then
./bin/rails db:prepare
fi
exec "${@}"