Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
# Use the official Debian 12 (Bookworm) base image
|
| 2 |
-
FROM debian:
|
| 3 |
|
| 4 |
# Set environment variables to avoid interactive prompts during package installation
|
| 5 |
ENV DEBIAN_FRONTEND=noninteractive
|
|
@@ -58,10 +58,10 @@ RUN git clone https://github.com/ggerganov/llama.cpp /home/user/code/models/llam
|
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
-
# Install .NET
|
| 62 |
RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && \
|
| 63 |
chmod +x dotnet-install.sh && \
|
| 64 |
-
./dotnet-install.sh --channel
|
| 65 |
|
| 66 |
# Set persistent environment variables
|
| 67 |
ENV DOTNET_ROOT=/home/user/.dotnet
|
|
@@ -104,7 +104,7 @@ WORKDIR /home/user/code/NetworkMonitorLLM
|
|
| 104 |
RUN dotnet restore && \
|
| 105 |
dotnet build -c Release
|
| 106 |
|
| 107 |
-
RUN cp -r /home/user/code/NetworkMonitorLLM/bin/Release/
|
| 108 |
rm -rf /home/user/code/NetworkMonitorLib /home/user/code/NetworkMonitorLLM /home/user/code/NetworkMonitorData
|
| 109 |
|
| 110 |
# Set the working directory to the `app` directory
|
|
|
|
| 1 |
# Use the official Debian 12 (Bookworm) base image
|
| 2 |
+
FROM debian:13
|
| 3 |
|
| 4 |
# Set environment variables to avoid interactive prompts during package installation
|
| 5 |
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
+
# Install .NET 10.0 as the non-root user
|
| 62 |
RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && \
|
| 63 |
chmod +x dotnet-install.sh && \
|
| 64 |
+
./dotnet-install.sh --channel 10.0
|
| 65 |
|
| 66 |
# Set persistent environment variables
|
| 67 |
ENV DOTNET_ROOT=/home/user/.dotnet
|
|
|
|
| 104 |
RUN dotnet restore && \
|
| 105 |
dotnet build -c Release
|
| 106 |
|
| 107 |
+
RUN cp -r /home/user/code/NetworkMonitorLLM/bin/Release/net10.0/* /home/user/code/app/ && \
|
| 108 |
rm -rf /home/user/code/NetworkMonitorLib /home/user/code/NetworkMonitorLLM /home/user/code/NetworkMonitorData
|
| 109 |
|
| 110 |
# Set the working directory to the `app` directory
|