Skip to content

Commit

Permalink
Try to fix reboot loop issue with entrypoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregschmit committed Mar 31, 2024
1 parent 57b7013 commit ae7b5a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ COPY --from=build /usr/local/bundle /usr/local/bundle
COPY --from=build /app /app

EXPOSE 3000
ENTRYPOINT ["bin/entrypoint.sh"]
CMD ["bin/rails", "server"]
7 changes: 7 additions & 0 deletions bin/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh -e

# Fix reboot loop issue (`A server is already running. Check
# /app/test/tmp/pids/server.pid.`).
rm -rf /app/test/tmp/pids/server.pid

exec "$@"

0 comments on commit ae7b5a5

Please sign in to comment.