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