11 lines
338 B
Docker
11 lines
338 B
Docker
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine AS build
|
|
|
|
WORKDIR /app
|
|
COPY . ./
|
|
RUN dotnet publish ./examples/MicroserviceExample/WorkerService -c Release -o /out -p:IntegrationBuild=true
|
|
|
|
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine AS runtime
|
|
WORKDIR /app
|
|
COPY --from=build /out ./
|
|
ENTRYPOINT ["dotnet", "WorkerService.dll"]
|