Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +3 -8
Dockerfile
CHANGED
|
@@ -41,20 +41,15 @@ RUN whoami && dotnet --version
|
|
| 41 |
# Clone repositories using the GITHUB_TOKEN secret
|
| 42 |
RUN --mount=type=secret,id=GITHUB_TOKEN,mode=0444,required=true \
|
| 43 |
git clone https://$(cat /run/secrets/GITHUB_TOKEN)@github.com/Mungert69/NetworkMonitorLib.git /home/user/code/NetworkMonitorLib && \
|
| 44 |
-
git clone https://$(cat /run/secrets/GITHUB_TOKEN)@github.com/Mungert69/
|
| 45 |
git clone https://$(cat /run/secrets/GITHUB_TOKEN)@github.com/Mungert69/NetworkMonitorBlazor.git /home/user/code/NetworkMonitorBlazor
|
| 46 |
|
| 47 |
|
| 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
|
| 54 |
-
|
| 55 |
-
RUN rm -rf /home/user/code/NetworkMonitorBlazor/Components && \
|
| 56 |
-
cp -r /home/user/code/FreeNetworkMonitorAgent/Components /home/user/code/NetworkMonitorBlazor/
|
| 57 |
-
# Expose port 7860 for Hugging Face Spaces
|
| 58 |
EXPOSE 7860
|
| 59 |
# Set the working directory
|
| 60 |
WORKDIR /home/user/code/NetworkMonitorBlazor
|
|
@@ -64,7 +59,7 @@ RUN dotnet restore && \
|
|
| 64 |
dotnet build -c Release
|
| 65 |
|
| 66 |
RUN cp -r /home/user/code/NetworkMonitorBlazor/bin/Release/net9.0/* /home/user/code/app/ && \
|
| 67 |
-
rm -rf /home/user/code/NetworkMonitorLib /home/user/code/NetworkMonitorBlazor /home/user/code/
|
| 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 |
|
|
|
|
| 41 |
# Clone repositories using the GITHUB_TOKEN secret
|
| 42 |
RUN --mount=type=secret,id=GITHUB_TOKEN,mode=0444,required=true \
|
| 43 |
git clone https://$(cat /run/secrets/GITHUB_TOKEN)@github.com/Mungert69/NetworkMonitorLib.git /home/user/code/NetworkMonitorLib && \
|
| 44 |
+
git clone https://$(cat /run/secrets/GITHUB_TOKEN)@github.com/Mungert69/NetworkMonitorChatRazorLib.git /home/user/code/NetworkMonitorChatRazorLib && \
|
| 45 |
git clone https://$(cat /run/secrets/GITHUB_TOKEN)@github.com/Mungert69/NetworkMonitorBlazor.git /home/user/code/NetworkMonitorBlazor
|
| 46 |
|
| 47 |
|
|
|
|
|
|
|
| 48 |
|
| 49 |
# Copy wwwroot from the cloned repo (inside container)
|
| 50 |
RUN cp -r /home/user/code/NetworkMonitorBlazor/wwwroot /home/user/code/app/
|
| 51 |
# After cloning all repositories
|
| 52 |
+
|
|
|
|
|
|
|
|
|
|
| 53 |
EXPOSE 7860
|
| 54 |
# Set the working directory
|
| 55 |
WORKDIR /home/user/code/NetworkMonitorBlazor
|
|
|
|
| 59 |
dotnet build -c Release
|
| 60 |
|
| 61 |
RUN cp -r /home/user/code/NetworkMonitorBlazor/bin/Release/net9.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
|
| 65 |
|