Ensured some dynamic RR config for prod env, based on env vars

This commit is contained in:
Alejandro Celaya
2022-08-27 17:17:37 +02:00
parent 2099ea16ec
commit 8852739111
6 changed files with 18 additions and 23 deletions

View File

@@ -60,7 +60,7 @@ LABEL maintainer="Alejandro Celaya <alejandro@alejandrocelaya.com>"
COPY --from=builder /etc/shlink .
RUN ln -s /etc/shlink/bin/cli /usr/local/bin/shlink && \
if [ "$SHLINK_RUNTIME" == 'rr' ]; then \
php ./vendor/bin/rr get --location bin/ && chmod +x bin/rr ; \
php ./vendor/bin/rr get --no-interaction --location bin/ && chmod +x bin/rr ; \
fi;
# Expose default port