mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
simplify web dockerfile
This commit is contained in:
parent
c108b45e94
commit
d773c99a3b
1 changed files with 1 additions and 7 deletions
|
|
@ -12,19 +12,13 @@ FROM mcr.microsoft.com/dotnet/core/sdk:2.2-alpine AS build
|
|||
RUN apk add --update nodejs nodejs-npm
|
||||
|
||||
# restore
|
||||
COPY FilterLists.Web.sln ./
|
||||
WORKDIR /src/FilterLists.Web/
|
||||
COPY src/FilterLists.Web/FilterLists.Web.csproj ./
|
||||
WORKDIR /
|
||||
RUN dotnet restore
|
||||
|
||||
# publish
|
||||
WORKDIR /src/FilterLists.Web/
|
||||
COPY src/FilterLists.Web/. ./
|
||||
RUN dotnet publish -c Release -o out --no-restore
|
||||
|
||||
# run
|
||||
FROM runtime
|
||||
COPY --from=build /src/FilterLists.Web/out ./
|
||||
|
||||
# test build trigger
|
||||
COPY --from=build /out ./
|
||||
|
|
|
|||
Loading…
Reference in a new issue