File tree Expand file tree Collapse file tree 3 files changed +18
-4
lines changed
Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 1414 - name : Install and build npm
1515 run : |
1616 npm install
17- npm run export
17+ npm run publish
1818 working-directory : ./ui
1919 - name : Setup dotnet
2020 uses : actions/setup-dotnet@v1
Original file line number Diff line number Diff line change 11FROM mcr.microsoft.com/dotnet/sdk:6.0-focal AS build
2+
3+ RUN apt-get update -yq \
4+ && apt-get -yq install curl gnupg ca-certificates \
5+ && curl -L https://deb.nodesource.com/setup_lts.x | bash \
6+ && apt-get update -yq \
7+ && apt-get install -yq \
8+ nodejs
9+
210WORKDIR /app
311
4- COPY ./api .
12+ COPY ./ui ./ui
13+ COPY ./api ./api
14+
15+ WORKDIR /app/ui
16+ RUN npm install && npm run publish
17+
18+ WORKDIR /app/api
519RUN dotnet restore
620
7- WORKDIR /app/MyApp
21+ WORKDIR /app/api/ MyApp
822RUN dotnet publish -c release -o /out --no-restore
923
1024FROM mcr.microsoft.com/dotnet/aspnet:6.0-focal AS runtime
Original file line number Diff line number Diff line change 44 "dev" : " next" ,
55 "build" : " next build" ,
66 "dtos" : " cd lib && x ts" ,
7- "export " : " next build && next export -o ../api/MyApp/wwwroot" ,
7+ "publish " : " next build && next export -o ../api/MyApp/wwwroot" ,
88 "start" : " next start" ,
99 "typecheck" : " tsc"
1010 },
You can’t perform that action at this time.
0 commit comments