feat: added docker build for projects
This commit is contained in:
11
JOBot.TClient/Dockerfile
Normal file
11
JOBot.TClient/Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
|
||||
WORKDIR /src
|
||||
COPY ["JOBot.TClient/JOBot.TClient.csproj", "JOBot.TClient/"]
|
||||
RUN dotnet restore "JOBot.TClient/JOBot.TClient.csproj"
|
||||
COPY . .
|
||||
RUN dotnet publish "JOBot.TClient/JOBot.TClient.csproj" -c Release -o /app
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/runtime:9.0
|
||||
WORKDIR /app
|
||||
COPY --from=build /app .
|
||||
ENTRYPOINT ["dotnet", "JOBot.TClient.dll"]
|
||||
Reference in New Issue
Block a user