From e06431d09f829bacd786f30079bd264d7147fb5e Mon Sep 17 00:00:00 2001 From: Khalitova Angelina Date: Wed, 4 Oct 2023 10:00:30 +0400 Subject: [PATCH] donee --- tasks/khalitova-am/lab_2/worker-1/Dockerfile | 4 ++-- tasks/khalitova-am/lab_2/worker-2/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/khalitova-am/lab_2/worker-1/Dockerfile b/tasks/khalitova-am/lab_2/worker-1/Dockerfile index 488ac22..a8649a9 100644 --- a/tasks/khalitova-am/lab_2/worker-1/Dockerfile +++ b/tasks/khalitova-am/lab_2/worker-1/Dockerfile @@ -4,10 +4,10 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env WORKDIR /src #в каталог копируем файлы и папки в контейнер -COPY src/*.csproj . +COPY *.csproj . #создаем образы и устанавливаем данные пакеты в контейнер RUN dotnet restore -COPY src . +COPY . . RUN dotnet publish -c Release -o /publish FROM mcr.microsoft.com/dotnet/aspnet:6.0 as runtime diff --git a/tasks/khalitova-am/lab_2/worker-2/Dockerfile b/tasks/khalitova-am/lab_2/worker-2/Dockerfile index f95365c..8f4818b 100644 --- a/tasks/khalitova-am/lab_2/worker-2/Dockerfile +++ b/tasks/khalitova-am/lab_2/worker-2/Dockerfile @@ -4,10 +4,10 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env WORKDIR /src #в каталог копируем файлы и папки в контейнер -COPY src/*.csproj . +COPY *.csproj . #создаем образы и устанавливаем данные пакеты в контейнер RUN dotnet restore -COPY src . +COPY . . RUN dotnet publish -c Release -o /publish FROM mcr.microsoft.com/dotnet/aspnet:6.0 as runtime