Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
-
# Use the official Debian
|
| 2 |
-
FROM debian:
|
| 3 |
|
| 4 |
# Set environment variables to avoid interactive prompts during package installation
|
| 5 |
ENV DEBIAN_FRONTEND=noninteractive
|
|
@@ -29,7 +29,7 @@ RUN mkdir -p /home/user/code/models && \
|
|
| 29 |
# Install .NET 9.0 as the non-root user
|
| 30 |
RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && \
|
| 31 |
chmod +x dotnet-install.sh && \
|
| 32 |
-
./dotnet-install.sh --channel
|
| 33 |
|
| 34 |
# Set persistent environment variables
|
| 35 |
ENV DOTNET_ROOT=/home/user/.dotnet
|
|
@@ -58,7 +58,7 @@ WORKDIR /home/user/code/NetworkMonitorBlazor
|
|
| 58 |
RUN dotnet restore && \
|
| 59 |
dotnet build -c Release
|
| 60 |
|
| 61 |
-
RUN cp -r /home/user/code/NetworkMonitorBlazor/bin/Release/
|
| 62 |
rm -rf /home/user/code/NetworkMonitorLib /home/user/code/NetworkMonitorBlazor /home/user/code/NetworkMonitorChatRazorLib
|
| 63 |
# Copy files into the container as the non-root user
|
| 64 |
COPY --chown=user:user appsettings.json /home/user/code/app/appsettings.json
|
|
|
|
| 1 |
+
# Use the official Debian 13 (Trixie) base image
|
| 2 |
+
FROM debian:13
|
| 3 |
|
| 4 |
# Set environment variables to avoid interactive prompts during package installation
|
| 5 |
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
| 29 |
# Install .NET 9.0 as the non-root user
|
| 30 |
RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && \
|
| 31 |
chmod +x dotnet-install.sh && \
|
| 32 |
+
./dotnet-install.sh --channel 10.0
|
| 33 |
|
| 34 |
# Set persistent environment variables
|
| 35 |
ENV DOTNET_ROOT=/home/user/.dotnet
|
|
|
|
| 58 |
RUN dotnet restore && \
|
| 59 |
dotnet build -c Release
|
| 60 |
|
| 61 |
+
RUN cp -r /home/user/code/NetworkMonitorBlazor/bin/Release/net10.0/* /home/user/code/app/ && \
|
| 62 |
rm -rf /home/user/code/NetworkMonitorLib /home/user/code/NetworkMonitorBlazor /home/user/code/NetworkMonitorChatRazorLib
|
| 63 |
# Copy files into the container as the non-root user
|
| 64 |
COPY --chown=user:user appsettings.json /home/user/code/app/appsettings.json
|