From c6c9688708a2e9041b4fd8ef6dda3192a8760788 Mon Sep 17 00:00:00 2001 From: ledocool Date: Fri, 28 Jul 2023 17:53:18 +0700 Subject: [PATCH] try fix docker file --- Budet-cho-bot/Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Budet-cho-bot/Dockerfile b/Budet-cho-bot/Dockerfile index 908f5cd..e69fc91 100644 --- a/Budet-cho-bot/Dockerfile +++ b/Budet-cho-bot/Dockerfile @@ -1,10 +1,11 @@ FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /app -COPY ./Budet-cho-bot ./Budet-cho-bot - -RUN dotnet restore Budet-cho-bot/Budet-cho-bot.fsproj -RUN dotnet publish Budet-cho-bot/Budet-cho-bot.fsproj -c Production -o /app/publish +COPY ["/Budet-cho-bot", "Budet-cho-bot"] +COPY ["/Config.json", "Config.json"] +RUN ls +RUN dotnet restore "Budet-cho-bot/Budet-cho-bot.fsproj" +RUN dotnet publish "Budet-cho-bot/Budet-cho-bot.fsproj" -c Production -o /app/publish FROM mcr.microsoft.com/dotnet/aspnet:7.0 as final WORKDIR /app