2021-10-12 18:19:49 +03:00
|
|
|
|
2024-02-10 01:28:29 +03:00
|
|
|
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
|
|
|
|
|
2024-02-10 01:28:29 +03:00
|
|
|
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
|
2021-10-12 18:19:49 +03:00
|
|
|
RUN dotnet new --install Steeltoe.NetCoreTool.Templates::${templates_version} &&\
|
2021-09-09 21:02:11 +03:00
|
|
|
dotnet new --list | grep steeltoe-webapi
|
2021-11-22 17:12:44 +03:00
|
|
|
# WORKDIR /usr/local/src
|
|
|
|
# RUN git clone https://github.com/SteeltoeOSS/NetCoreToolTemplates
|
2021-12-10 17:06:06 +03:00
|
|
|
# RUN git -C NetCoreToolTemplates checkout release/1.2
|
2021-11-22 17:12:44 +03:00
|
|
|
# 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"]
|