File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM node:22-bookworm-slim as node-env
2+ WORKDIR /app
3+ ENV PATH /app/node_modules/.bin:$PATH
4+ COPY eform-angular-frontend/eform-client ./
5+ RUN yarn install
6+ RUN yarn build
7+
8+ FROM mcr.microsoft.com/dotnet/sdk:9.0-noble AS build-env
9+ WORKDIR /app
10+ ARG GITVERSION
11+ ARG PLUGINVERSION
12+
13+ # Copy csproj and restore as distinct layers
14+ COPY eform-angular-frontend/eFormAPI/eFormAPI.Web ./eFormAPI.Web
15+ COPY eform-angular-basecustomer-plugin/eFormAPI/Plugins/Customers.Pn ./Customers.Pn
16+ RUN dotnet publish eFormAPI.Web -o eFormAPI.Web/out /p:Version=$GITVERSION --runtime linux-x64 --configuration Release
17+ RUN dotnet publish Customers.Pn -o Customers.Pn/out /p:Version=$PLUGINVERSION --runtime linux-x64 --configuration Release
18+
19+ # Build runtime image
20+ FROM mcr.microsoft.com/dotnet/aspnet:9.0-noble
21+ WORKDIR /app
22+ COPY --from=build-env /app/eFormAPI.Web/out .
23+ RUN mkdir -p ./Plugins/Customers.Pn
24+ COPY --from=build-env /app/Customers.Pn/out ./Plugins/Customers.Pn
25+ COPY --from=node-env /app/dist/browser wwwroot
26+
27+ ENV DEBIAN_FRONTEND noninteractive
28+ ENV Logging__Console__FormatterName=
29+
30+ ENTRYPOINT ["dotnet" , "eFormAPI.Web.dll" ]
You can’t perform that action at this time.
0 commit comments