entrypoint.sh 292 B

12345678910111213
  1. #!/bin/bash
  2. if [ "$(ls -A /etc/nginx)" = "" ]; then
  3. echo "Initialing Nginx config dir"
  4. cp -rp /usr/etc/nginx/* /etc/nginx/
  5. echo "Initialed Nginx config dir"
  6. fi
  7. echo "export PATH=$PATH:/usr/local/go/bin:$(go env GOPATH)/bin" >> ~/.profile
  8. source ~/.profile
  9. nginx
  10. cd /app && air