add files for automatic ci
This commit is contained in:
parent
7b9342e6e1
commit
033415a2b4
16
.drone.yml
Normal file
16
.drone.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: exec
|
||||||
|
name: backend
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
commands:
|
||||||
|
- docker-compose build
|
||||||
|
|
||||||
|
- name: publish
|
||||||
|
commands:
|
||||||
|
- docker-compose up -d
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
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"]
|
||||||
9
docker-compose.yml
Normal file
9
docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
version: '3.4'
|
||||||
|
|
||||||
|
services:
|
||||||
|
bot:
|
||||||
|
image: bot
|
||||||
|
container_name: bot
|
||||||
|
build:
|
||||||
|
context: ./
|
||||||
|
dockerfile: Budet-cho-bot/Dockerfile
|
||||||
Reference in New Issue
Block a user