Added docker files for Tes and TriggerService to enable ad-hoc building on the CoA VM.
This commit is contained in:
Родитель
9f776c1ef5
Коммит
01827290f6
|
@ -8,7 +8,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
|
|||
.editorconfig = .editorconfig
|
||||
CodeCoverage.runsettings = CodeCoverage.runsettings
|
||||
src\CommonAssemblyInfo.cs = src\CommonAssemblyInfo.cs
|
||||
Dockerfile = Dockerfile
|
||||
src\Dockerfile-Tes = src\Dockerfile-Tes
|
||||
src\Dockerfile-TriggerService = src\Dockerfile-TriggerService
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CromwellApiClient", "src\CromwellApiClient\CromwellApiClient.csproj", "{98D92D1C-7D23-4517-A5FB-D7948544F15F}"
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License.
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build-env
|
||||
WORKDIR /app
|
||||
|
||||
# Restore packages in separate layer
|
||||
COPY TesApi.Web/TesApi.Web.csproj TesApi.Web/
|
||||
COPY Tes/Tes.csproj Tes/
|
||||
RUN dotnet restore TesApi.Web/TesApi.Web.csproj
|
||||
|
||||
# Copy the rest of the files and publish
|
||||
COPY . ./
|
||||
RUN dotnet publish -c Release -o out --no-restore TesApi.Web/TesApi.Web.csproj
|
||||
|
||||
# Build runtime image
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:5.0
|
||||
WORKDIR /app
|
||||
COPY --from=build-env /app/out .
|
||||
ENTRYPOINT ["dotnet", "tesapi.dll"]
|
|
@ -0,0 +1,22 @@
|
|||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License.
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build-env
|
||||
WORKDIR /app
|
||||
|
||||
# Restore packages in separate layer
|
||||
COPY TriggerService/TriggerService.csproj TriggerService/
|
||||
COPY Tes/Tes.csproj Tes/
|
||||
COPY Common/Common.csproj Common/
|
||||
COPY CromwellApiClient/CromwellApiClient.csproj CromwellApiClient/
|
||||
RUN dotnet restore TriggerService/TriggerService.csproj
|
||||
|
||||
# Copy the rest of the files and publish
|
||||
COPY . ./
|
||||
RUN dotnet publish -c Release -o out --no-restore TriggerService/TriggerService.csproj
|
||||
|
||||
# Build runtime image
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:5.0
|
||||
WORKDIR /app
|
||||
COPY --from=build-env /app/out .
|
||||
ENTRYPOINT ["dotnet", "TriggerService.dll"]
|
Загрузка…
Ссылка в новой задаче