17 lines
668 B
Docker
17 lines
668 B
Docker
|
|
# Hamkadr (همکادر) — .NET 10 Razor Pages. Images + NuGet pulled through Nexus (mirror.soroushasadi.com).
|
||
|
|
FROM mirror.soroushasadi.com/dotnet/sdk:10.0 AS build
|
||
|
|
WORKDIR /src
|
||
|
|
COPY nuget.docker.config /tmp/nuget.config
|
||
|
|
COPY src/ ./src/
|
||
|
|
RUN dotnet restore src/JobsMedical.Web/JobsMedical.Web.csproj --configfile /tmp/nuget.config
|
||
|
|
RUN dotnet publish src/JobsMedical.Web/JobsMedical.Web.csproj -c Release -o /out --no-restore \
|
||
|
|
/p:UseAppHost=false
|
||
|
|
|
||
|
|
FROM mirror.soroushasadi.com/dotnet/aspnet:10.0
|
||
|
|
WORKDIR /app
|
||
|
|
COPY --from=build /out ./
|
||
|
|
EXPOSE 8080
|
||
|
|
ENV ASPNETCORE_URLS=http://+:8080 \
|
||
|
|
DOTNET_CLI_TELEMETRY_OPTOUT=1
|
||
|
|
ENTRYPOINT ["dotnet", "JobsMedical.Web.dll"]
|