add basic Docker entrypoint script
This commit is contained in:
parent
249d067c0e
commit
27f10e0671
@ -41,4 +41,5 @@ COPY --from=build --chown=app:app /app /app
|
||||
COPY --chown=app:app . .
|
||||
|
||||
EXPOSE $PORT
|
||||
ENTRYPOINT [ "/app/dockerfiles/entrypoint.sh" ]
|
||||
CMD [ "bundle", "exec", "puma" ]
|
||||
|
@ -41,4 +41,5 @@ COPY --from=build --chown=app:app /app /app
|
||||
COPY --chown=app:app . .
|
||||
|
||||
EXPOSE $PORT
|
||||
ENTRYPOINT [ "/app/dockerfiles/entrypoint.sh" ]
|
||||
CMD [ "bundle", "exec", "puma" ]
|
||||
|
10
dockerfiles/entrypoint.sh
Executable file
10
dockerfiles/entrypoint.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
# output debugging info
|
||||
ruby --version
|
||||
printf "rubygems %s\n" "$(gem --version)"
|
||||
bundle version
|
||||
|
||||
exec "${@}"
|
Loading…
x
Reference in New Issue
Block a user