allowing restore during build of containers
This commit is contained in:
parent
08f5bc7285
commit
564d6f3e1a
@ -14,33 +14,33 @@
|
|||||||
*.userprefs
|
*.userprefs
|
||||||
|
|
||||||
# Build results
|
# Build results
|
||||||
[Dd]ebug/
|
**/[Dd]ebug/
|
||||||
[Dd]ebugPublic/
|
**/[Dd]ebugPublic/
|
||||||
[Rr]elease/
|
**/[Rr]elease/
|
||||||
[Rr]eleases/
|
**/[Rr]eleases/
|
||||||
x64/
|
**/x64/
|
||||||
x86/
|
**/x86/
|
||||||
bld/
|
**/bld/
|
||||||
[Bb]in/
|
**/[Bb]in/
|
||||||
[Oo]bj/
|
**/[Oo]bj/
|
||||||
[Ll]og/
|
**/[Ll]og/
|
||||||
|
|
||||||
# Visual Studio 2015 cache/options directory
|
# Visual Studio 2015 cache/options directory
|
||||||
.vs/
|
**/.vs/
|
||||||
# Uncomment if you have tasks that create the project's static files in wwwroot
|
# Uncomment if you have tasks that create the project's static files in wwwroot
|
||||||
#wwwroot/
|
#wwwroot/
|
||||||
|
|
||||||
# MSTest test Results
|
# MSTest test Results
|
||||||
[Tt]est[Rr]esult*/
|
**/[Tt]est[Rr]esult*/
|
||||||
[Bb]uild[Ll]og.*
|
**/[Bb]uild[Ll]og.*
|
||||||
|
|
||||||
# NUNIT
|
# NUNIT
|
||||||
*.VisualState.xml
|
*.VisualState.xml
|
||||||
TestResult.xml
|
TestResult.xml
|
||||||
|
|
||||||
# Build Results of an ATL Project
|
# Build Results of an ATL Project
|
||||||
[Dd]ebugPS/
|
**/[Dd]ebugPS/
|
||||||
[Rr]eleasePS/
|
**/[Rr]eleasePS/
|
||||||
dlldata.c
|
dlldata.c
|
||||||
|
|
||||||
# DNX
|
# DNX
|
||||||
@ -144,7 +144,7 @@ DocProject/Help/Html2
|
|||||||
DocProject/Help/html
|
DocProject/Help/html
|
||||||
|
|
||||||
# Click-Once directory
|
# Click-Once directory
|
||||||
publish/
|
**/publish/
|
||||||
|
|
||||||
# Publish Web Output
|
# Publish Web Output
|
||||||
*.[Pp]ublish.xml
|
*.[Pp]ublish.xml
|
||||||
@ -200,7 +200,7 @@ ClientBin/
|
|||||||
*.jfm
|
*.jfm
|
||||||
*.pfx
|
*.pfx
|
||||||
*.publishsettings
|
*.publishsettings
|
||||||
node_modules/
|
**/node_modules/
|
||||||
orleans.codegen.cs
|
orleans.codegen.cs
|
||||||
|
|
||||||
# Since there are multiple workflows, uncomment next line to ignore bower_components
|
# Since there are multiple workflows, uncomment next line to ignore bower_components
|
||||||
|
@ -13,7 +13,7 @@ RUN dotnet restore ./Selector.CLI/Selector.CLI.csproj
|
|||||||
COPY . ./
|
COPY . ./
|
||||||
|
|
||||||
FROM base as publish
|
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
|
FROM mcr.microsoft.com/dotnet/aspnet:7.0
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
@ -24,7 +24,7 @@ COPY . ./
|
|||||||
FROM base as publish
|
FROM base as publish
|
||||||
COPY --from=frontend /Selector.Web/wwwroot Selector.Web/wwwroot/
|
COPY --from=frontend /Selector.Web/wwwroot Selector.Web/wwwroot/
|
||||||
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
|
FROM mcr.microsoft.com/dotnet/aspnet:7.0
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
Loading…
Reference in New Issue
Block a user