initial commit
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled

https://guides.rubyonrails.org/getting_started.html#creating-a-database-model
This commit is contained in:
Stefan Tollkühn
2025-09-10 15:48:40 +02:00
parent c66813a3cc
commit eb2033a6fd
95 changed files with 2575 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 "${@}"