mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
copy data into base for VS debug support
ref https://github.com/microsoft/DockerTools/issues/196#issuecomment-505066479
This commit is contained in:
parent
0cc915b7d1
commit
22a1e49110
2 changed files with 2 additions and 10 deletions
|
|
@ -5,12 +5,4 @@ services:
|
|||
ports:
|
||||
- "80:80"
|
||||
volumes:
|
||||
- ./ops/nginx/conf.d.dev:/etc/nginx/conf.d:ro
|
||||
|
||||
api:
|
||||
build:
|
||||
target: build
|
||||
|
||||
web:
|
||||
build:
|
||||
target: build
|
||||
- ./ops/nginx/conf.d.dev:/etc/nginx/conf.d:ro
|
||||
|
|
@ -6,6 +6,7 @@ FROM mcr.microsoft.com/dotnet/core/aspnet:2.2-alpine as base
|
|||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
ENTRYPOINT ["dotnet", "FilterLists.Api.dll"]
|
||||
COPY data/. data/
|
||||
|
||||
# init build
|
||||
FROM mcr.microsoft.com/dotnet/core/sdk:2.2-alpine AS build
|
||||
|
|
@ -60,4 +61,3 @@ RUN dotnet publish -c Release -o out --no-restore --no-build
|
|||
# final
|
||||
FROM base as final
|
||||
COPY --from=publish /app/src/FilterLists.Api/out .
|
||||
COPY data/. data/
|
||||
|
|
|
|||
Loading…
Reference in a new issue