allowing restore during build of containers

This commit is contained in:
Andy Pack 2023-05-14 13:31:12 +01:00
parent 08f5bc7285
commit 564d6f3e1a
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7
3 changed files with 19 additions and 19 deletions

View File

@ -14,33 +14,33 @@
*.userprefs
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
**/[Dd]ebug/
**/[Dd]ebugPublic/
**/[Rr]elease/
**/[Rr]eleases/
**/x64/
**/x86/
**/bld/
**/[Bb]in/
**/[Oo]bj/
**/[Ll]og/
# Visual Studio 2015 cache/options directory
.vs/
**/.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
**/[Tt]est[Rr]esult*/
**/[Bb]uild[Ll]og.*
# NUNIT
*.VisualState.xml
TestResult.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
**/[Dd]ebugPS/
**/[Rr]eleasePS/
dlldata.c
# DNX
@ -144,7 +144,7 @@ DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
**/publish/
# Publish Web Output
*.[Pp]ublish.xml
@ -200,7 +200,7 @@ ClientBin/
*.jfm
*.pfx
*.publishsettings
node_modules/
**/node_modules/
orleans.codegen.cs
# Since there are multiple workflows, uncomment next line to ignore bower_components

View File

@ -13,7 +13,7 @@ RUN dotnet restore ./Selector.CLI/Selector.CLI.csproj
COPY . ./
FROM base as publish
RUN dotnet publish Selector.CLI/Selector.CLI.csproj -c Release -o /app --no-restore
RUN dotnet publish Selector.CLI/Selector.CLI.csproj -c Release -o /app
FROM mcr.microsoft.com/dotnet/aspnet:7.0
WORKDIR /app

View File

@ -24,7 +24,7 @@ COPY . ./
FROM base as publish
COPY --from=frontend /Selector.Web/wwwroot Selector.Web/wwwroot/
COPY --from=frontend /Selector.Web/wwwroot Selector.Web/wwwroot/
RUN dotnet publish Selector.Web/Selector.Web.csproj -c Release -o /app --no-restore
RUN dotnet publish Selector.Web/Selector.Web.csproj -c Release -o /app
FROM mcr.microsoft.com/dotnet/aspnet:7.0
EXPOSE 80