Attempt to add Docker (via Rails 7.1 file)
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build encountered an error

This commit is contained in:
Andrew Tomaka 2023-03-08 19:35:40 -05:00
parent fd75a7c6ff
commit faef71fb9c
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
4 changed files with 138 additions and 37 deletions

12
bin/docker-entrypoint Executable file
View file

@ -0,0 +1,12 @@
#!/bin/sh
if [ $# -eq 0 ]; then
# Create new or migrate existing database
./bin/rails db:prepare
# Start the server by default
exec bin/rails server
else
# Allow other commands, like console or runner, to be called
exec bin/rails "$@"
fi