From 368fd931822d3cefb1cabb9d672d79faaefc387d Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 29 Jun 2019 13:00:19 -0500 Subject: [PATCH] add do-not-prune lable to image rather than container --- docker-compose.yml | 2 -- src/FilterLists.Agent/Dockerfile | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 74af22cdc..8284d3fb4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -66,8 +66,6 @@ services: - archives:/app/archives environment: ApplicationInsights__InstrumentationKey: ${FILTERLISTS_AGENT_APPLICATION_INSIGHTS_INSTRUMENTATION_KEY} - labels: - do-not-prune: networks: reverse-proxy: diff --git a/src/FilterLists.Agent/Dockerfile b/src/FilterLists.Agent/Dockerfile index a629232cd..8b1b84b19 100644 --- a/src/FilterLists.Agent/Dockerfile +++ b/src/FilterLists.Agent/Dockerfile @@ -4,6 +4,7 @@ # init base FROM mcr.microsoft.com/dotnet/core/aspnet:2.2-alpine as base ENTRYPOINT ["dotnet", "FilterLists.Agent.dll"] +LABEL do-not-prune WORKDIR /app # init build