NetCoreToolService/Dockerfile

17 строки
603 B
Docker
Исходник Обычный вид История

2021-03-25 15:08:40 +03:00
FROM mcr.microsoft.com/dotnet/sdk:5.0-alpine AS build
WORKDIR /source
COPY . .
RUN dotnet restore
RUN dotnet publish -c release -o /srv --no-restore
FROM mcr.microsoft.com/dotnet/sdk:5.0-alpine
ARG templates_version=1.0.1
RUN dotnet nuget add source https://pkgs.dev.azure.com/dotnet/Steeltoe/_packaging/dev/nuget/v3/index.json -n SteeltoeDev
RUN dotnet new --install Steeltoe.NetCoreTool.Templates::${templates_version} &&\
2021-09-09 21:02:11 +03:00
dotnet new --list | grep steeltoe-webapi
2021-03-25 15:08:40 +03:00
WORKDIR /srv
COPY --from=build /srv .
2021-06-17 20:46:14 +03:00
ENV DOTNET_URLS http://0.0.0.0:80
ENTRYPOINT ["dotnet", "Steeltoe.NetCoreToolService.dll"]