tasker/pvw-pipliner/Dockerfile

13 lines
626 B
Docker

FROM ci.pvw.tn.tngrp.ru/tnt_docker/etnt/base-images/dotnet-v7-sdk:v7.0.410
COPY ./ /tmp/
RUN dotnet nuget locals all --clear
RUN dotnet restore ./tmp/App01.csproj --configfile ./tmp/nuget.config --no-cache --interactive --verbosity minimal --force
RUN dotnet build ./tmp/App01.csproj -c Release -o /tmp/build
RUN dotnet publish ./tmp/App01.csproj -c Release -o /tmp/publish /p:UseAppHost=false
RUN ls -la tmp
RUN ls -la tmp/build
RUN rm -rf /tmp/publish/nuget.config && rm -rf /tmp/publish/appsettings.json
RUN ls -la tmp/publish
# RUN tar cfz distr.tar.gz tmp
# Запускаем приложение
CMD ["sleep", "100"]