Skip to content

Commit

Permalink
Simplify docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
merschformann committed Sep 15, 2024
1 parent 597903e commit 1aa1bdb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SC.Service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY ["SC.Service/SC.Service.csproj", "SC.Service/"]
RUN dotnet restore "SC.Service/SC.Service.csproj"
COPY . .
RUN dotnet restore "SC.Service/SC.Service.csproj"
WORKDIR "/src/SC.Service"
RUN dotnet build "SC.Service.csproj" -c Release -o /app/build
RUN dotnet publish "SC.Service.csproj" -c Release -o /app/publish
Expand Down

0 comments on commit 1aa1bdb

Please sign in to comment.