Spaces:
Running
Running
Commit
·
b65302f
1
Parent(s):
6d2e19b
trying running the context build later
Browse files- Dockerfile +2 -2
- entrypoint.sh +14 -0
Dockerfile
CHANGED
|
@@ -109,6 +109,6 @@ RUN cp -r /home/user/code/NetworkMonitorLLM/bin/Release/net10.0/* /home/user/cod
|
|
| 109 |
|
| 110 |
# Set the working directory to the `app` directory
|
| 111 |
WORKDIR /home/user/code/app
|
|
|
|
|
|
|
| 112 |
|
| 113 |
-
# Run the .NET app as the non-root user
|
| 114 |
-
CMD ["dotnet", "NetworkMonitorLLM.dll", "--urls", "http://0.0.0.0:7860"]
|
|
|
|
| 109 |
|
| 110 |
# Set the working directory to the `app` directory
|
| 111 |
WORKDIR /home/user/code/app
|
| 112 |
+
ENTRYPOINT ["/home/user/code/entrypoint.sh"]
|
| 113 |
+
CMD ["dotnet", "NetworkMonitorLLM.dll"]
|
| 114 |
|
|
|
|
|
|
entrypoint.sh
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -e
|
| 3 |
+
|
| 4 |
+
CTX=/home/user/code/models/context-qwen-3.gguf
|
| 5 |
+
|
| 6 |
+
if [ ! -f "$CTX" ]; then
|
| 7 |
+
echo "Context cache missing – generating..."
|
| 8 |
+
/home/user/code/models/expect-build-qwen-3
|
| 9 |
+
else
|
| 10 |
+
echo "Context cache found – skipping generation"
|
| 11 |
+
fi
|
| 12 |
+
|
| 13 |
+
exec "$@"
|
| 14 |
+
|