diff --git a/api/Dockerfile b/api/Dockerfile index 6c7ad92..74fc85d 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -50,4 +50,4 @@ USER www # Expose port 9000 and start php-fpm server EXPOSE 9000 -CMD ["php-fpm"] +CMD ["./start.sh"] diff --git a/api/start.sh b/api/start.sh new file mode 100755 index 0000000..3c59e50 --- /dev/null +++ b/api/start.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +sed -i "s/localhost:5611/${APP_URL}/g" ./api/public/js/* +php-fpm