1
Fork 0
mirror of https://github.com/Quackster/Minerva.git synced 2025-06-29 21:07:45 +00:00

Merge pull request #2 from arths31/docker

Add Docker support
This commit is contained in:
Quackster 2024-08-15 20:28:39 +10:00 committed by GitHub
commit e7c53abd6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 0 deletions

13
Dockerfile Normal file
View file

@ -0,0 +1,13 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS builder
WORKDIR /sources
COPY . .
RUN apt update && apt install -y unzip
RUN dotnet publish -c Release --output build Minerva.sln --self-contained false
RUN unzip -qq ./tools/figuredata-shockwave.zip -d build
RUN unzip -qq ./tools/badges.zip -d build
FROM mcr.microsoft.com/dotnet/aspnet:8.0
WORKDIR /minerva
COPY --from=builder /sources/build .
ENTRYPOINT ["/minerva/Minerva"]

9
docker-compose.yaml Normal file
View file

@ -0,0 +1,9 @@
services:
minerva:
build: .
networks:
- havana_havana
networks:
havana_havana:
external: true