mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-30 04:14:04 +02:00
This commit is contained in:
@@ -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 #
|
||||
|
||||
Reference in New Issue
Block a user