mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-04-07 16:40:45 -04:00
- Added a production-ready `Dockerfile` based on Ruby 3.3.8-bullseye. - Added `entrypoint.sh` to handle Rails server PID cleanup. - Added `.dockerignore` to optimize build context. - Added `docker-compose.yml` for local orchestration of Rails, PostgreSQL 17, and Elasticsearch 7.4.0. - Added GitHub Actions workflow in `.github/workflows/docker-build-push.yml` to build and push the image to GHCR on pushes to the `dev` branch. Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com>
9 lines
200 B
Bash
Executable File
9 lines
200 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
# Remove a potentially pre-existing server.pid for Rails.
|
|
rm -f /app/tmp/pids/server.pid
|
|
|
|
# Then exec the container's main process (what's set as CMD in the Dockerfile).
|
|
exec "$@"
|