-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
33b7092
commit 66db370
Showing
1 changed file
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |