-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
33 lines (26 loc) · 1.75 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env
WORKDIR /app
COPY ./*sln ./
COPY ./src/OpenFTTH.GDBIntegrator/*.csproj ./src/OpenFTTH.GDBIntegrator/
COPY ./src/OpenFTTH.GDBIntegrator.Config/*.csproj ./src/OpenFTTH.GDBIntegrator.Config/
COPY ./src/OpenFTTH.GDBIntegrator.RouteNetwork/*.csproj ./src/OpenFTTH.GDBIntegrator.RouteNetwork/
COPY ./src/OpenFTTH.GDBIntegrator.Subscriber/*.csproj ./src/OpenFTTH.GDBIntegrator.Subscriber/
COPY ./src/OpenFTTH.GDBIntegrator.Producer/*.csproj ./src/OpenFTTH.GDBIntegrator.Producer/
COPY ./src/OpenFTTH.GDBIntegrator.GeoDatabase/*.csproj ./src/OpenFTTH.GDBIntegrator.GeoDatabase/
COPY ./src/OpenFTTH.GDBIntegrator.Integrator/*.csproj ./src/OpenFTTH.GDBIntegrator.Integrator/
COPY ./test/OpenFTTH.GDBIntegrator.Tests/*.csproj ./test/OpenFTTH.GDBIntegrator.Tests/
COPY ./test/OpenFTTH.GDBIntegrator.Config.Tests/*.csproj ./test/OpenFTTH.GDBIntegrator.Config.Tests/
COPY ./test/OpenFTTH.GDBIntegrator.RouteNetwork.Tests/*.csproj ./test/OpenFTTH.GDBIntegrator.RouteNetwork.Tests/
COPY ./test/OpenFTTH.GDBIntegrator.Subscriber.Tests/*.csproj ./test/OpenFTTH.GDBIntegrator.Subscriber.Tests/
COPY ./test/OpenFTTH.GDBIntegrator.Producer.Tests/*.csproj ./test/OpenFTTH.GDBIntegrator.Producer.Tests/
COPY ./test/OpenFTTH.GDBIntegrator.GeoDatabase.Tests/*.csproj ./test/OpenFTTH.GDBIntegrator.GeoDatabase.Tests/
COPY ./test/OpenFTTH.GDBIntegrator.Integrator.Tests/*.csproj ./test/OpenFTTH.GDBIntegrator.Integrator.Tests/
RUN dotnet restore --packages ./packages
COPY . ./
WORKDIR /app/src/OpenFTTH.GDBIntegrator
RUN dotnet publish -c Release -o out --packages ./packages
# Build runtime image
FROM mcr.microsoft.com/dotnet/runtime:6.0
WORKDIR /app
COPY --from=build-env /app/src/OpenFTTH.GDBIntegrator/out .
ENTRYPOINT ["dotnet", "OpenFTTH.GDBIntegrator.dll"]