mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-15 17:08:19 +01:00
14 lines
393 B
Docker
14 lines
393 B
Docker
ARG BUILD_FROM
|
|
ARG BUILD_VERSION
|
|
FROM ${BUILD_FROM}${BUILD_VERSION}
|
|
|
|
RUN \
|
|
# Allow UID and GID setting
|
|
sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser \
|
|
&& sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser \
|
|
&& sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser
|
|
|
|
# Copy root filesystem
|
|
COPY rootfs /
|
|
|
|
VOLUME [ "/data" ] |