Skip to content

Commit

Permalink
Update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbquali committed Nov 8, 2023
1 parent d34fc32 commit fea6260
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Quali.Torque.Cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ WORKDIR /Quali.Torque.Cli
# Copy everything
COPY . ./
# Restore as distinct layers
RUN dotnet restore "./Quali.Torque.Cli/Quali.Torque.Cli.csproj"
RUN dotnet restore
# RUN dotnet restore "./Quali.Torque.Cli/Quali.Torque.Cli.csproj"
# Build and publish a release
# RUN dotnet publish -c Release -o out
RUN dotnet publish "./Quali.Torque.Cli/Quali.Torque.Cli.csproj" -c Release -o out
RUN dotnet publish -c Release -o out
# RUN dotnet publish "./Quali.Torque.Cli/Quali.Torque.Cli.csproj" -c Release -o out

# Build runtime image
FROM mcr.microsoft.com/dotnet/runtime:7.0
Expand Down

0 comments on commit fea6260

Please sign in to comment.