-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
21 lines (16 loc) · 967 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
LABEL maintainer="Kamil Janek"
WORKDIR /source
COPY . .
RUN dotnet restore
RUN dotnet publish API/src/TibiaEnemyOtherCharactersFinder.Api/TibiaEnemyOtherCharactersFinder.Api.csproj -c Release -o /app --no-restore
RUN dotnet publish Seeders/src/CharacterAnalyser/CharacterAnalyser.csproj -c Release -o /app --no-restore
RUN dotnet publish Seeders/src/DbTableCleaner/DbCleaner.csproj -c Release -o /app --no-restore
RUN dotnet publish Seeders/src/WorldScanSeeder/WorldScanSeeder.csproj -c Release -o /app --no-restore
RUN dotnet publish Seeders/src/WorldSeeder/WorldSeeder.csproj -c Release -o /app --no-restore
RUN dotnet publish Seeders/src/ChangeNameDetector/ChangeNameDetector.csproj -c Release -o /app --no-restore
RUN dotnet publish Seeders/src/RabbitMqSubscriber/RabbitMqSubscriber.csproj -c Release -o /app --no-restore
FROM mcr.microsoft.com/dotnet/aspnet:7.0
WORKDIR /app
COPY --from=build /app ./
EXPOSE 80