Update start.sh
Browse files
start.sh
CHANGED
@@ -1,7 +1,10 @@
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
-
# Start Nginx
|
4 |
-
sudo nginx
|
|
|
|
|
|
|
5 |
|
6 |
# Execute the default CMD specified in the Dockerfile or passed via the docker run command
|
7 |
-
exec "$@"
|
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
+
# Start Nginx in the background
|
4 |
+
sudo nginx &
|
5 |
+
|
6 |
+
# Print the command and arguments for debugging
|
7 |
+
echo "Starting the main application with command: $@"
|
8 |
|
9 |
# Execute the default CMD specified in the Dockerfile or passed via the docker run command
|
10 |
+
exec "$@"
|