mirror of
https://github.com/mainflux/mainflux.git
synced 2025-05-08 19:29:17 +08:00

* 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>
10 lines
217 B
Bash
Executable File
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;"
|