From ca782875c2bd4f47c22b7f09aad1fff4ac3a4330 Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Mon, 18 Oct 2021 15:12:20 -0600 Subject: [PATCH] Conditionally load .env file in Dockerfile With 843632a, whoogle.env is now gitignored and should only be created by users from the whoogle.template.env file. Since the file no longer exists, the docker build cannot copy it in by default. This just conditionally copies the file in if it exists. --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5c925aa..073d4d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -66,8 +66,7 @@ COPY --from=builder /install /usr/local COPY misc/tor/torrc /etc/tor/torrc COPY misc/tor/start-tor.sh misc/tor/start-tor.sh COPY app/ app/ -COPY run . -COPY whoogle.env . +COPY run whoogle.env* . # Allow writing symlinks to build dir RUN chown 102:102 app/static/build