Spaces:
Sleeping
Sleeping
Download Dockerfile from Ahmedtiger7/quick: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/spaces/Ahmedtiger7/quick/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Ahmedtiger7/quick/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Ahmedtiger7/quick/resolve/main/Dockerfile
1.03 kB
| FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build | |
| WORKDIR /src | |
| # تثبيت أداة فك الضغط داخل الـ Docker | |
| RUN apt-get update && apt-get install -y unzip | |
| # نسخ الملف المضغوط فقط إلى داخل السيرفر | |
| COPY project.zip . | |
| # فك ضغط الملف مباشرة | |
| RUN unzip project.zip && rm project.zip | |
| # 🔥 السطر السحري المعدل: الانتقال إلى المجلد المستخرج تلقائياً | |
| WORKDIR /src/quickInvoiceSaaS | |
| # تشغيل الـ restore والـ build بناءً على المحتوى المفكوك | |
| RUN dotnet restore "quickInvoiceSaaS.csproj" | |
| RUN dotnet build "quickInvoiceSaaS.csproj" -c Release -o /app/build | |
| FROM build AS publish | |
| RUN dotnet publish "quickInvoiceSaaS.csproj" -c Release -o /app/publish /p:UseAppHost=false | |
| FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS final | |
| WORKDIR /app | |
| COPY --from=publish /app/publish . | |
| ENV ASPNETCORE_URLS=http://+:7860 | |
| EXPOSE 7860 | |
| ENTRYPOINT ["dotnet", "quickInvoiceSaaS.dll"] |