mirror of
https://github.com/opelly27/WinStudentGoalTracker.git
synced 2026-05-20 01:47:41 +00:00
18 lines
371 B
Docker
18 lines
371 B
Docker
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
|
|
WORKDIR /src
|
|
|
|
COPY api.csproj ./
|
|
RUN dotnet restore api.csproj
|
|
|
|
COPY . ./
|
|
RUN dotnet publish api.csproj -c Release -o /app/publish --no-restore
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS runtime
|
|
WORKDIR /app
|
|
COPY --from=build /app/publish .
|
|
|
|
ENV ASPNETCORE_URLS=http://+:8005
|
|
EXPOSE 8005
|
|
|
|
ENTRYPOINT ["dotnet", "api.dll"]
|