From 51c2682b3b7ecec54a994b43890499be31e0866d Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 22 Jun 2022 14:13:00 +0200 Subject: [PATCH] Allow change of entrypoint --- mealie/Dockerfile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/mealie/Dockerfile b/mealie/Dockerfile index 11985ea41..1cdf41654 100644 --- a/mealie/Dockerfile +++ b/mealie/Dockerfile @@ -65,11 +65,20 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ################ RUN \ - # Add custom instructions to run.sh + # Add custom instructions to run.sh on armv7 + if [ -f /app/mealie/run.sh ]; then \ sed -i '1d' /app/mealie/run.sh \ && cat /app/mealie/run.sh >> /run.txt \ && cat /run.txt > /app/mealie/run.sh \ - && chmod +x /app/mealie/run.sh + && chmod +x /app/mealie/run.sh; fi && \ + \ + # Add custom instructions to run.sh on other aarch + if [ -f /app/run.sh ]; then \ + sed -i '1d' /app/run.sh \ + && cat /app/run.sh >> /run.txt \ + && cat /run.txt > /app/run.sh \ + && chmod +x /app/run.sh; fi + ############ # 5 Labels #