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