Initializr/Dockerfile

22 строки
499 B
Docker

FROM hananiel/dotnetcore2.2.101
WORKDIR /app
COPY packages ./
COPY shared.props ./
COPY stylecop.json ./
COPY nuget.config ./
COPY src ./
WORKDIR ./src
RUN dotnet restore
RUN dotnet publish -f netcoreapp2.2 -o out
#FROM mcr.microsoft.com/dotnet/core/aspnet:2.2-alpine AS runtime
#WORKDIR /app
#COPY --from=build /app/src/InitializrApi/out ./
#COPY .templateengine /root/.templateengine/
#RUN dotnet new console -o /root/test.zip
EXPOSE 8080
ENTRYPOINT ["dotnet", "out/Steeltoe.Initializr.dll"]