Spaces:
Running
Running
Commit
·
f78e821
1
Parent(s):
3368936
- Dockerfile +3 -5
Dockerfile
CHANGED
@@ -44,14 +44,12 @@ RUN whoami && dotnet --version
|
|
44 |
# Clone repositories using the GITHUB_TOKEN secret
|
45 |
RUN --mount=type=secret,id=GITHUB_TOKEN,mode=0444,required=true \
|
46 |
git clone https://$(cat /run/secrets/GITHUB_TOKEN)@github.com/Mungert69/NetworkMonitor.git /home/user/code/NetworkMonitor && \
|
47 |
-
git clone https://$(cat /run/secrets/GITHUB_TOKEN)@github.com/Mungert69/
|
48 |
git clone https://$(cat /run/secrets/GITHUB_TOKEN)@github.com/Mungert69/NetworkMonitorBlazor.git /home/user/code/NetworkMonitorBlazor
|
49 |
|
50 |
-
# Debug: List all files in NetworkMonitorAgent
|
51 |
-
RUN ls -la /home/user/code/NetworkMonitorAgent/
|
52 |
|
53 |
# Debug: Check if Components exists
|
54 |
-
RUN test -d /home/user/code/
|
55 |
|
56 |
# Copy files into the container as the non-root user
|
57 |
COPY --chown=user:user appsettings.json /home/user/code/app/appsettings.json
|
@@ -60,7 +58,7 @@ RUN cp -r /home/user/code/NetworkMonitorBlazor/wwwroot /home/user/code/app/
|
|
60 |
# After cloning all repositories
|
61 |
# Delete the symlink (if it exists) and copy the real folder
|
62 |
RUN rm -rf /home/user/code/NetworkMonitorBlazor/Components && \
|
63 |
-
cp -r /home/user/code/
|
64 |
# Expose port 7860 for Hugging Face Spaces
|
65 |
EXPOSE 7860
|
66 |
# Set the working directory
|
|
|
44 |
# Clone repositories using the GITHUB_TOKEN secret
|
45 |
RUN --mount=type=secret,id=GITHUB_TOKEN,mode=0444,required=true \
|
46 |
git clone https://$(cat /run/secrets/GITHUB_TOKEN)@github.com/Mungert69/NetworkMonitor.git /home/user/code/NetworkMonitor && \
|
47 |
+
git clone https://$(cat /run/secrets/GITHUB_TOKEN)@github.com/Mungert69/FreeNetworkMonitorAgent.git /home/user/code/FreeNetworkMonitorAgent && \
|
48 |
git clone https://$(cat /run/secrets/GITHUB_TOKEN)@github.com/Mungert69/NetworkMonitorBlazor.git /home/user/code/NetworkMonitorBlazor
|
49 |
|
|
|
|
|
50 |
|
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
|
|
|
58 |
# After cloning all repositories
|
59 |
# Delete the symlink (if it exists) and copy the real folder
|
60 |
RUN rm -rf /home/user/code/NetworkMonitorBlazor/Components && \
|
61 |
+
cp -r /home/user/code/FreeNetworkMonitorAgent/Components /home/user/code/NetworkMonitorBlazor/
|
62 |
# Expose port 7860 for Hugging Face Spaces
|
63 |
EXPOSE 7860
|
64 |
# Set the working directory
|