mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Update Dockerfile
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
#============================#
|
||||
# ALEXBELGIUM'S DOCKERFILE #
|
||||
#============================#
|
||||
# ... ascii art omitted ...
|
||||
#=== Home Assistant Add‑on – ENTE (server + web UI) ===#
|
||||
|
||||
########################################################
|
||||
# 0 ▸ Build the ente‑web static front‑end (multi‑stage) #
|
||||
# 0 Build the ente‑web static front‑end (multi‑stage) #
|
||||
########################################################
|
||||
FROM node:22-alpine AS web-builder
|
||||
|
||||
@@ -32,26 +31,26 @@ RUN yarn config set network-timeout 900000 -g \
|
||||
&& yarn build:cast
|
||||
|
||||
#################
|
||||
# 1 ▸ Base image #
|
||||
# 1 Base image #
|
||||
#################
|
||||
FROM ghcr.io/ente-io/server:latest
|
||||
|
||||
##################
|
||||
# 2 ▸ Tune image #
|
||||
# 2 Tune image #
|
||||
##################
|
||||
ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
||||
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
|
||||
S6_SERVICES_GRACETIME=0
|
||||
USER root
|
||||
|
||||
# --- LSIO helper (unchanged) ---
|
||||
# --- LSIO helper ---
|
||||
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_lsio.sh" /ha_lsio.sh
|
||||
ARG CONFIGLOCATION="/config"
|
||||
RUN chmod 744 /ha_lsio.sh && \
|
||||
if grep -qr "lsio" /etc; then /ha_lsio.sh "$CONFIGLOCATION"; fi && \
|
||||
rm /ha_lsio.sh
|
||||
|
||||
# --- MinIO, psql client etc. (unchanged) ---
|
||||
# --- MinIO, psql client etc. ---
|
||||
RUN set -eux; \
|
||||
BUILD_ARCH=$(uname -m) \
|
||||
&& echo "${BUILD_ARCH}" \
|
||||
@@ -79,7 +78,7 @@ COPY --from=web-builder /src/web/apps/auth/out /www/auth
|
||||
COPY --from=web-builder /src/web/apps/cast/out /www/cast
|
||||
|
||||
##################
|
||||
# 3 ▸ Install add‑on helpers (unchanged) #
|
||||
# 3 Install add‑on helpers #
|
||||
##################
|
||||
COPY rootfs/ /
|
||||
ARG MODULES="00-banner.sh 01-custom_script.sh 00-global_var.sh 00-local_mounts.sh 00-smb_mounts.sh"
|
||||
@@ -92,7 +91,7 @@ RUN chmod 744 /ha_autoapps.sh && /ha_autoapps.sh "$PACKAGES" && rm /ha_autoapps.
|
||||
|
||||
|
||||
################
|
||||
# 4 ▸ Entrypoint (unchanged) #
|
||||
# 4 Entrypoint #
|
||||
################
|
||||
ENV S6_STAGE2_HOOK=/ha_entrypoint.sh
|
||||
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint.sh" /ha_entrypoint.sh
|
||||
@@ -103,7 +102,7 @@ ENTRYPOINT ["/usr/bin/env"]
|
||||
CMD ["/ha_entrypoint.sh"]
|
||||
|
||||
############
|
||||
# 5 ▸ Labels (unchanged) #
|
||||
# 5 Labels #
|
||||
############
|
||||
ARG BUILD_VERSION BUILD_ARCH BUILD_DATE BUILD_NAME BUILD_DESCRIPTION BUILD_REF BUILD_REPOSITORY
|
||||
LABEL \
|
||||
@@ -123,6 +122,6 @@ LABEL \
|
||||
org.opencontainers.image.version=${BUILD_VERSION}
|
||||
|
||||
#################
|
||||
# 6 ▸ Finish line #
|
||||
# 6 Finish line #
|
||||
#################
|
||||
EXPOSE 3000 3001 3002 3003 3004
|
||||
|
||||
Reference in New Issue
Block a user