mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-20 07:41:48 +02:00
Update Dockerfile
This commit is contained in:
@@ -2,13 +2,15 @@ ARG BUILD_FROM
|
|||||||
ARG BUILD_VERSION
|
ARG BUILD_VERSION
|
||||||
FROM ${BUILD_FROM}
|
FROM ${BUILD_FROM}
|
||||||
|
|
||||||
|
COPY rootfs /
|
||||||
|
|
||||||
ARG BASHIO_VERSION=0.13.1
|
ARG BASHIO_VERSION=0.13.1
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
################
|
################
|
||||||
# Install apps #
|
# Install apps #
|
||||||
################
|
################
|
||||||
apt-get update && apt-get install -y jq curl bash nginx && apt-get clean || apk add --no-cache jq curl bash nginx \
|
apt-get update && apt-get install -y jq curl bash && apt-get clean || apk add --no-cache jq curl bash \
|
||||||
\
|
\
|
||||||
##################
|
##################
|
||||||
# Install bashio #
|
# Install bashio #
|
||||||
@@ -18,16 +20,12 @@ RUN \
|
|||||||
| tar -xzf - --strip 1 -C /tmp/bashio \
|
| tar -xzf - --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 -rf /tmp/bashio
|
&& rm -rf /tmp/bashio \
|
||||||
|
|
||||||
COPY rootfs /
|
|
||||||
|
|
||||||
RUN \
|
|
||||||
###############
|
###############
|
||||||
# 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 custom instructions to run.sh
|
# Add custom instructions to run.sh
|
||||||
&& sed -i '1d' /app/mealie/run.sh \
|
&& sed -i '1d' /app/mealie/run.sh \
|
||||||
&& cat /app/mealie/run.sh >> /run.txt \
|
&& cat /app/mealie/run.sh >> /run.txt \
|
||||||
|
|||||||
Reference in New Issue
Block a user