mirror of
https://github.com/azaion/satellite-provider.git
synced 2026-06-27 12:21:18 +00:00
80ef5608f1
Co-authored-by: Cursor <cursoragent@cursor.com>
24 lines
1.2 KiB
Docker
24 lines
1.2 KiB
Docker
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
|
WORKDIR /src
|
|
RUN apt-get update \
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends protobuf-compiler \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
ENV PROTOBUF_PROTOC=/usr/bin/protoc
|
|
COPY ["SatelliteProvider.IntegrationTests/SatelliteProvider.IntegrationTests.csproj", "SatelliteProvider.IntegrationTests/"]
|
|
COPY ["SatelliteProvider.GrpcContracts/SatelliteProvider.GrpcContracts.csproj", "SatelliteProvider.GrpcContracts/"]
|
|
COPY ["SatelliteProvider.TestSupport/SatelliteProvider.TestSupport.csproj", "SatelliteProvider.TestSupport/"]
|
|
COPY ["SatelliteProvider.Common/SatelliteProvider.Common.csproj", "SatelliteProvider.Common/"]
|
|
RUN dotnet restore "SatelliteProvider.IntegrationTests/SatelliteProvider.IntegrationTests.csproj"
|
|
COPY . .
|
|
WORKDIR "/src/SatelliteProvider.IntegrationTests"
|
|
RUN dotnet build "SatelliteProvider.IntegrationTests.csproj" -c Release -o /app/build
|
|
|
|
FROM build AS publish
|
|
RUN dotnet publish "SatelliteProvider.IntegrationTests.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
|
|
WORKDIR /app
|
|
COPY --from=publish /app/publish .
|
|
ENTRYPOINT ["dotnet", "SatelliteProvider.IntegrationTests.dll"]
|
|
|