Skip to content

Commit 9fe74cf

Browse files
authored
feat: add Docker builds (#59)
1 parent 7de016c commit 9fe74cf

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
2+
WORKDIR /app
3+
4+
COPY src/Bot ./
5+
RUN dotnet restore
6+
7+
RUN dotnet publish -c Release -o out
8+
9+
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS runtime
10+
WORKDIR /app
11+
COPY --from=build /app/out ./
12+
13+
CMD ["dotnet", "Volte.dll"]

docker-compose.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
services:
2+
volte:
3+
build:
4+
context: .
5+
dockerfile: Dockerfile
6+
restart: unless-stopped
7+
volumes:
8+
- ./data:/app/data

0 commit comments

Comments
 (0)