1
0

Merge pull request 'feature/ci-cd' (#1) from feature/ci-cd into master
Some checks failed
continuous-integration/drone Build is failing

Reviewed-on: #1

First attempt at adding cicd
This commit was merged in pull request #1.
This commit is contained in:
2023-07-28 10:44:31 +00:00
4 changed files with 55 additions and 1 deletions

12
Budet-cho-bot/Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
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
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"]