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
parent
843632a22c
commit
ca782875c2
|
@ -66,8 +66,7 @@ COPY --from=builder /install /usr/local
|
||||||
COPY misc/tor/torrc /etc/tor/torrc
|
COPY misc/tor/torrc /etc/tor/torrc
|
||||||
COPY misc/tor/start-tor.sh misc/tor/start-tor.sh
|
COPY misc/tor/start-tor.sh misc/tor/start-tor.sh
|
||||||
COPY app/ app/
|
COPY app/ app/
|
||||||
COPY run .
|
COPY run whoogle.env* .
|
||||||
COPY whoogle.env .
|
|
||||||
|
|
||||||
# Allow writing symlinks to build dir
|
# Allow writing symlinks to build dir
|
||||||
RUN chown 102:102 app/static/build
|
RUN chown 102:102 app/static/build
|
||||||
|
|
Loading…
Reference in New Issue