ExampleWebService/Dockerfile

13 lines
279 B
Docker
Raw Normal View History

2023-07-14 22:28:03 +02:00
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-service
ADD . /src
RUN dotnet publish /src/ExampleWebService --output /usr/app
FROM mcr.microsoft.com/dotnet/aspnet:7.0
COPY --from=build-service /usr/app /usr/app
WORKDIR "/usr/app"
CMD ["/usr/app/ExampleWebService"]
EXPOSE 80