Skip to content

Commit

Permalink
dotnet fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ford-at-aws committed Oct 3, 2023
1 parent 33b7092 commit 66db370
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions dotnetv3/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# syntax=docker/dockerfile:1
FROM mcr.microsoft.com/dotnet/sdk:6.0

# Copy source code
COPY . /dotnetv3

# Perform build steps
# Enable the .NET 5.0 SDK if running 5.0 examples:
COPY --from=mcr.microsoft.com/dotnet/sdk:5.0 /usr/share/dotnet/sdk /usr/share/dotnet/sdk
COPY --from=mcr.microsoft.com/dotnet/sdk:5.0 /usr/share/dotnet/shared /usr/share/dotnet/shared

# Copy the dotnetv3 folder and run unit tests from the top level solution.
# Or navigate to a service folder or a scenario folder,
# such as dotnetv3/CloudWatch/Scenarios to build and run an interactive scenario with `dotnet run`
COPY . /dotnetv3

RUN cd /dotnetv3 && dotnet build

CMD ["dotnet", "test", "--filter", "Category=Unit"]
CMD ["dotnet", "test", "dotnetv3", "--filter", "Category=Unit"]

0 comments on commit 66db370

Please sign in to comment.