Update Dockerfile

This commit is contained in:
Alexandre
2021-07-26 21:15:00 +02:00
committed by GitHub
parent 7239075b83
commit 30364cd123

View File

@@ -8,31 +8,31 @@ RUN \
################ ################
# Install apps # # Install apps #
################ ################
apk add --no-cache jq curl bash \ apk add --no-cache jq curl bash
\
################## ##################
# Install bashio # # Install bashio #
################## ##################
&& curl -J -L -o /tmp/bashio.tar.gz \ #&& curl -J -L -o /tmp/bashio.tar.gz \
"https://github.com/hassio-addons/bashio/archive/v0.13.0.tar.gz" \ #"https://github.com/hassio-addons/bashio/archive/v0.13.0.tar.gz" \
&& mkdir /tmp/bashio \ #&& mkdir /tmp/bashio \
&& tar zxvf \ #&& tar zxvf \
/tmp/bashio.tar.gz \ #/tmp/bashio.tar.gz \
--strip 1 -C /tmp/bashio \ #--strip 1 -C /tmp/bashio \
\ #\
&& mv /tmp/bashio/lib /usr/lib/bashio \ #&& mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \ #&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -fr \ # && rm -fr \
/tmp/* \ #/tmp/* \
\ # \
############### ###############
# Adapt image # # Adapt image #
############### ###############
# Correct data path # Correct data path
&& grep -rl "/app/data" /app | xargs sed -i 's|/app/data|/data|g' \ && grep -rl "/app/data" /app | xargs sed -i 's|/app/data|/data|g'
# Add nginx # Add nginx
&& sed -i 's|#!/bin/sh|#!/bin/env bashio|g' /app/mealie/run.sh #&& sed -i 's|#!/bin/sh|#!/bin/env bashio|g' /app/mealie/run.sh \
#&& cat /nginx.txt >> /app/mealie/run.sh #&& cat /nginx.txt >> /app/mealie/run.sh
VOLUME [ "/data" ] VOLUME [ "/data" ]