Alexandre
2023-04-11 10:33:47 +02:00
parent f93de1fb9a
commit 9bd7fffb14
14 changed files with 266 additions and 112 deletions

View File

@@ -27,9 +27,13 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
S6_SERVICES_GRACETIME=0
ENV FRONTEND_PORT=9925
# Correct data path
# hadolint ignore=DL4006
RUN grep -rl "/app/data" /app | xargs sed -i 's|/app/data|/config/addons_config/mealie_data|g'
RUN grep -rl "/app/data" /app | xargs sed -i 's|/app/data|/config/addons_config/mealie_data|g' && \
# Sets port to 9925 as default port
sed -i "s|yarn start -p 3000|yarn start -p 9925|g" /app/run.sh
##################
# 3 Install apps #
@@ -55,7 +59,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
&& chmod -R 755 /etc/cont-init.d
# Manual apps
ENV PACKAGES="jq curl bash"
ENV PACKAGES="nginx"
# Automatic apps & bashio
# hadolint ignore=SC2015
@@ -72,17 +76,10 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
RUN \
# Add custom instructions to run.sh on armv7
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; \
# Add custom instructions to run.sh on other aarch
elif [ -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; fi
&& chmod +x /app/run.sh
############
# 5 Labels #