File tree 1 file changed +13
-4
lines changed
1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -10,17 +10,26 @@ COPY ./ ./
10
10
ARG NUGET_API_KEY
11
11
ARG SOLUTION_NAME
12
12
13
- RUN dotnet nuget add source https://nuget.pkg.github.com/trumpee/index.json --name github --username trumpee --password $NUGET_API_KEY --store-password-in-clear-text
14
- RUN ls -alF && dotnet restore "$SOLUTION_NAME.sln" --source "https://api.nuget.org/v3/index.json" --source "https://nuget.pkg.github.com/trumpee/index.json"
13
+ RUN dotnet nuget add source https://nuget.pkg.github.com/trumpee/index.json \
14
+ --name github \
15
+ --username trumpee \
16
+ --password $NUGET_API_KEY \
17
+ --store-password-in-clear-text
18
+
19
+ RUN dotnet restore "$SOLUTION_NAME.sln" \
20
+ --source "https://api.nuget.org/v3/index.json" \
21
+ --source "https://nuget.pkg.github.com/trumpee/index.json"
22
+
15
23
RUN dotnet build "$SOLUTION_NAME.sln" -c Release -o /app/build --no-restore
16
24
17
25
FROM build AS publish
18
26
RUN dotnet publish "$SOLUTION_NAME.sln" -c Release -o /app/publish
19
27
20
28
FROM base AS final
29
+ WORKDIR /app
30
+ COPY --from=publish /app/publish .
21
31
22
32
ARG SOLUTION_NAME
33
+ ENV SOLUTION_NAME=$SOLUTION_NAME
23
34
24
- WORKDIR /app
25
- COPY --from=publish /app/publish .
26
35
ENTRYPOINT ["dotnet" , "$SOLUTION_NAME.dll" ]
You can’t perform that action at this time.
0 commit comments