1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-05-08 19:29:17 +08:00
Mainflux.mainflux/ui/docker/entrypoint.sh
Ivan Milošević 54823bed25 NOISSUE - Fix building UI docker image for arm (#806)
* Add entrypoint in arm Dockerfile
Switch from ash to dash in entrypoint script

Signed-off-by: Ivan Milošević <iva@blokovi.com>

* Add new line on file end

Signed-off-by: Ivan Milošević <iva@blokovi.com>
2019-07-25 17:15:06 +02:00

10 lines
217 B
Bash
Executable File

#!/bin/sh
if [ -n "$MF_UI_PORT" ]; then
sed -i -e "s/MF_UI_PORT/$MF_UI_PORT/" /etc/nginx/conf.d/default.conf
else
sed -i -e "s/MF_UI_PORT/3000/" /etc/nginx/conf.d/default.conf
fi
exec nginx -g "daemon off;"