NetCoreToolService/Dockerfile

21 строка
812 B
Docker
Исходник Обычный вид История

FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
2021-03-25 15:08:40 +03:00
WORKDIR /source
COPY . .
RUN dotnet restore
RUN dotnet publish -c release -o /srv --no-restore
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine
ARG templates_version=1.3.0
#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
# WORKDIR /usr/local/src
# RUN git clone https://github.com/SteeltoeOSS/NetCoreToolTemplates
# RUN git -C NetCoreToolTemplates checkout release/1.2
# RUN dotnet new --install NetCoreToolTemplates/src/Content
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"]