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.
main
Ben Busby 2021-10-18 15:12:20 -06:00
parent 843632a22c
commit ca782875c2
No known key found for this signature in database
GPG Key ID: 339B7B7EB5333D14
1 changed files with 1 additions and 2 deletions

View File

@ -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