Spaces:
Running
Running
Commit
·
53d664b
1
Parent(s):
08b45f9
- Dockerfile +2 -5
Dockerfile
CHANGED
|
@@ -26,9 +26,6 @@ RUN mkdir -p /home/user/code/models && \
|
|
| 26 |
mkdir -p /home/user/code/app/wwwroot
|
| 27 |
|
| 28 |
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
# Install .NET 9.0 as the non-root user
|
| 33 |
RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && \
|
| 34 |
chmod +x dotnet-install.sh && \
|
|
@@ -51,8 +48,6 @@ RUN --mount=type=secret,id=GITHUB_TOKEN,mode=0444,required=true \
|
|
| 51 |
# Debug: Check if Components exists
|
| 52 |
RUN test -d /home/user/code/FreeNetworkMonitorAgent/Components && echo "Components found!" || echo "Components MISSING"
|
| 53 |
|
| 54 |
-
# Copy files into the container as the non-root user
|
| 55 |
-
COPY --chown=user:user appsettings.json /home/user/code/app/appsettings.json
|
| 56 |
# Copy wwwroot from the cloned repo (inside container)
|
| 57 |
RUN cp -r /home/user/code/NetworkMonitorBlazor/wwwroot /home/user/code/app/
|
| 58 |
# After cloning all repositories
|
|
@@ -70,6 +65,8 @@ RUN dotnet restore && \
|
|
| 70 |
|
| 71 |
RUN cp -r /home/user/code/NetworkMonitorBlazor/bin/Release/net9.0/* /home/user/code/app/ && \
|
| 72 |
rm -rf /home/user/code/NetworkMonitor /home/user/code/NetworkMonitorBlazor /home/user/code/NetworkMonitorAgent
|
|
|
|
|
|
|
| 73 |
|
| 74 |
# Set the working directory to the `app` directory
|
| 75 |
WORKDIR /home/user/code/app
|
|
|
|
| 26 |
mkdir -p /home/user/code/app/wwwroot
|
| 27 |
|
| 28 |
|
|
|
|
|
|
|
|
|
|
| 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 && \
|
|
|
|
| 48 |
# Debug: Check if Components exists
|
| 49 |
RUN test -d /home/user/code/FreeNetworkMonitorAgent/Components && echo "Components found!" || echo "Components MISSING"
|
| 50 |
|
|
|
|
|
|
|
| 51 |
# Copy wwwroot from the cloned repo (inside container)
|
| 52 |
RUN cp -r /home/user/code/NetworkMonitorBlazor/wwwroot /home/user/code/app/
|
| 53 |
# After cloning all repositories
|
|
|
|
| 65 |
|
| 66 |
RUN cp -r /home/user/code/NetworkMonitorBlazor/bin/Release/net9.0/* /home/user/code/app/ && \
|
| 67 |
rm -rf /home/user/code/NetworkMonitor /home/user/code/NetworkMonitorBlazor /home/user/code/NetworkMonitorAgent
|
| 68 |
+
# Copy files into the container as the non-root user
|
| 69 |
+
COPY --chown=user:user appsettings.json /home/user/code/app/appsettings.json
|
| 70 |
|
| 71 |
# Set the working directory to the `app` directory
|
| 72 |
WORKDIR /home/user/code/app
|