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 0c0e788966
Some checks failed
continuous-integration/drone/pr Build is failing
try build
2023-07-28 20:53:41 +07:00

15 lines
478 B
Docker

FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
WORKDIR /app
COPY ["/Budet-cho-bot", "Budet-cho-bot"]
COPY ["/Config.json", "Config.json"]
RUN ls
RUN ls 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
FROM mcr.microsoft.com/dotnet/aspnet:7.0 as final
WORKDIR /app
COPY --from=build /app/publish .
ENTRYPOINT ["dotnet", "Budet-cho-bot.dll", "--environment=Development"]