Add pvw-pipliner/Dockerfile

This commit is contained in:
pashko 2025-12-18 10:48:48 +08:00
parent 06738c39c5
commit e6cfb02304

13
pvw-pipliner/Dockerfile Normal file
View File

@ -0,0 +1,13 @@
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"]