1
0
This repository has been archived on 2023-08-03. You can view files and clone it, but cannot push or open issues or pull requests.
budet-cho-bot/Budet-cho-bot/Dockerfile
ledocool 1afcda905c
Some checks failed
continuous-integration/drone/pr Build is failing
try fix docker build
2023-07-28 21:02:06 +07:00

20 lines
614 B
Docker

FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
WORKDIR /app
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
WORKDIR /src
COPY ["/Budet-cho-bot", "Budet-cho-bot"]
COPY ["/Config.json", "Config.json"]
RUN dotnet restore "Budet-cho-bot/Budet-cho-bot.fsproj"
COPY . .
WORKDIR "/src/Budet-cho-bot"
RUN dotnet build "Budet-cho-bot.fsproj" -c Release -o /app/publish
FROM build AS publish
RUN dotnet publish "Budet-cho-bot.fsproj" -c Release -o /app/publish /p:UseAppHost=false
FROM base as final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "Budet-cho-bot.dll", "--environment=Development"]