Compare commits
2 Commits
f35288a33e
...
6e6f6dc75d
| Author | SHA1 | Date | |
|---|---|---|---|
| 6e6f6dc75d | |||
| e5693edc49 |
@ -5,13 +5,13 @@ FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
|||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY ["/Budet-cho-bot", "Budet-cho-bot"]
|
COPY ["/Budet-cho-bot", "Budet-cho-bot"]
|
||||||
COPY ["/Config.json", "Config.json"]
|
COPY ["/Config.json", "Config.json"]
|
||||||
RUN dotnet restore "Budet-cho-bot/Budet-cho-bot.fsproj"
|
RUN dotnet restore "Budet-cho-bot/Budet-cho-bot.csproj"
|
||||||
COPY . .
|
COPY . .
|
||||||
WORKDIR "/src/Budet-cho-bot"
|
WORKDIR "/src/Budet-cho-bot"
|
||||||
RUN dotnet build "Budet-cho-bot.fsproj" -c Release -o /app/publish
|
RUN dotnet build "Budet-cho-bot.csproj" -c Release -o /app/publish
|
||||||
|
|
||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
RUN dotnet publish "Budet-cho-bot.fsproj" -c Release -o /app/publish /p:UseAppHost=false
|
RUN dotnet publish "Budet-cho-bot.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
||||||
|
|
||||||
FROM base as final
|
FROM base as final
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
Reference in New Issue
Block a user