Merge pull request 'feature/ci-cd' (#1) from feature/ci-cd into master
Some checks failed
continuous-integration/drone Build is failing
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:
12
Budet-cho-bot/Dockerfile
Normal file
12
Budet-cho-bot/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user