forked from awsdocs/aws-doc-sdk-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
15 lines (11 loc) · 753 Bytes
/
Dockerfile
File metadata and controls
15 lines (11 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# syntax=docker/dockerfile:1
FROM mcr.microsoft.com/dotnet/sdk:6.0
# Add the dotnet 8 runtime
COPY --from=mcr.microsoft.com/dotnet/sdk:8.0 /usr/share/dotnet/sdk /usr/share/dotnet/sdk
COPY --from=mcr.microsoft.com/dotnet/sdk:8.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 -v=q --property WarningLevel=0 /clp:ErrorsOnly --nologo
CMD ["dotnet", "test", "dotnetv3", "--filter", "Category=Unit|Category=Weathertop", "--verbosity=quiet", "/clp:ErrorsOnly", "--nologo"]