vega-frontend-monorepo/docker/entrypoint.sh

15 lines
306 B
Bash
Raw Normal View History

#!/bin/sh
2023-09-18 11:17:37 +00:00
entrypoint="${1:-nginx}"
2023-09-18 11:17:37 +00:00
if [[ "$entrypoint" = "nginx" ]]; then
nginx -g 'daemon off;'
2023-09-18 11:17:37 +00:00
elif [[ "$entrypoint" = "ipfs" ]]; then
ipfs config profile apply server
ipfs config --json Addresses.Gateway '"/ip4/127.0.0.1/tcp/80"'
ipfs daemon
2023-09-18 11:17:37 +00:00
elif [[ "-c" ]]; then
shift
/bin/sh -c "$@"
fi