build tweaks
This commit is contained in:
parent
3b273962cf
commit
da302af8bf
6 changed files with 6 additions and 1209 deletions
|
@ -1,12 +1,9 @@
|
|||
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
|
||||
#FROM privateregistry.michelescandura.com/michele/basecompileimage as build
|
||||
WORKDIR /src
|
||||
|
||||
# copy csproj and restore as distinct layers
|
||||
COPY Sledgemapper.Api/*.csproj ./Sledgemapper.Api/
|
||||
COPY Sledgemapper.Shared/*.csproj ./Sledgemapper.Shared/
|
||||
# COPY Sledgemapper/*.csproj ./Sledgemapper/
|
||||
|
||||
|
||||
WORKDIR /src/Sledgemapper.Api
|
||||
RUN dotnet restore
|
||||
|
@ -21,13 +18,7 @@ WORKDIR /src/Sledgemapper
|
|||
WORKDIR /src
|
||||
COPY Sledgemapper.Api/. ./Sledgemapper.Api/
|
||||
COPY Sledgemapper.Shared/. ./Sledgemapper.Shared/
|
||||
#COPY Sledgemapper/. ./Sledgemapper/
|
||||
#WORKDIR /src/Sledgemapper
|
||||
|
||||
#COPY build.sh .
|
||||
|
||||
#RUN chmod +x build.sh
|
||||
#RUN sh build.sh
|
||||
WORKDIR /src/Sledgemapper.Api
|
||||
RUN dotnet publish -c release -o /app --no-restore
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue