Initial commit
This commit is contained in:
17
license-system-backend/Dockerfile
Normal file
17
license-system-backend/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 39256
|
||||
ENV ASPNETCORE_URLS=http://+:39256
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||||
WORKDIR /src
|
||||
COPY src/License.Api/License.Api.csproj src/License.Api/
|
||||
RUN dotnet restore "src/License.Api/License.Api.csproj"
|
||||
COPY src/License.Api/ src/License.Api/
|
||||
WORKDIR /src/src/License.Api
|
||||
RUN dotnet publish -c Release -o /app/publish
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/publish .
|
||||
ENTRYPOINT ["dotnet", "License.Api.dll"]
|
||||
Reference in New Issue
Block a user