File tree 3 files changed +25
-20
lines changed
3 files changed +25
-20
lines changed Original file line number Diff line number Diff line change 1
- FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine AS base
1
+ FROM mcr.microsoft.com/dotnet/runtime:6.0.1-alpine3.14-amd64 AS base
2
2
WORKDIR /app
3
3
EXPOSE 80
4
4
5
- FROM mcr.microsoft.com/dotnet/core/ sdk:3.1 AS build
5
+ FROM mcr.microsoft.com/dotnet/sdk:6.0.101-focal-amd64 AS build
6
6
WORKDIR /src
7
7
COPY ["TibiaApi/TibiaApi.Web.csproj" , "TibiaApi/" ]
8
8
COPY ["Tibia.Comum/TibiaApi.Comum.csproj" , "Tibia.Comum/" ]
Original file line number Diff line number Diff line change
1
+ FROM mcr.microsoft.com/dotnet/runtime:6.0.1-alpine3.14-amd64 AS base
2
+ WORKDIR /app
3
+
4
+ FROM mcr.microsoft.com/dotnet/sdk:6.0.101-focal-amd64 AS build
5
+ WORKDIR /src
6
+ COPY ["Tibia.Comum/TibiaApi.Comum.csproj" , "Tibia.Comum/" ]
7
+ COPY ["TibiaApi.Service/TibiaApi.Service.csproj" , "TibiaApi.Service/" ]
8
+ COPY ["TibiaApi.Repository/TibiaApi.Repository.csproj" , "TibiaApi.Repository/" ]
9
+ COPY ["TibiaApi.Database/TibiaApi.Database.csproj" , "TibiaApi.Database/" ]
10
+ COPY ["TibiaApi.BotWeb/TibiaApi.BotWeb.csproj" , "TibiaApi.BotWeb/" ]
11
+ COPY ["WorkerTibia/WorkerTibia.csproj" , "WorkerTibia/" ]
12
+ RUN dotnet restore "WorkerTibia/WorkerTibia.csproj"
13
+ COPY . .
14
+ WORKDIR "/src/WorkerTibia"
15
+ RUN dotnet build "WorkerTibia.csproj" -c Release -o /app/build
16
+
17
+ FROM build AS publish
18
+ RUN dotnet publish "WorkerTibia.csproj" -c Release -o /app/publish
19
+
20
+ FROM base AS final
21
+ WORKDIR /app
22
+ COPY --from=publish /app/publish .
23
+ ENTRYPOINT ["dotnet" , "WorkerTibia.dll" ]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments