-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
24 lines (20 loc) · 842 Bytes
/
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
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /epcis
EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /epcis
COPY ["src/FasTnT.Host/", "FasTnT.Host/"]
COPY ["src/FasTnT.Application/", "FasTnT.Application/"]
COPY ["src/FasTnT.Domain/", "FasTnT.Domain/"]
COPY ["src/Providers/FasTnT.Sqlite/", "Providers/FasTnT.Sqlite/"]
COPY ["src/Providers/FasTnT.Postgres/", "Providers/FasTnT.Postgres/"]
COPY ["src/Providers/FasTnT.SqlServer/", "Providers/FasTnT.SqlServer/"]
RUN dotnet restore "FasTnT.Host/FasTnT.Host.csproj"
WORKDIR "/epcis/FasTnT.Host"
RUN dotnet build "FasTnT.Host.csproj" -c Release -o /epcis/build
FROM build AS publish
RUN dotnet publish "FasTnT.Host.csproj" -c Release -o /epcis/publish
FROM base AS final
WORKDIR /epcis
COPY --from=publish /epcis/publish .
ENTRYPOINT ["dotnet", "FasTnT.Host.dll"]