Clean logic

This commit is contained in:
Alexandre
2023-09-05 15:37:57 +02:00
parent 1615ff457a
commit d7f2f29db1
81 changed files with 682 additions and 224 deletions

View File

@@ -40,7 +40,8 @@ COPY rootfs/ /
# Corrects permissions for s6 v3
RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \
if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \
if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi
if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \
if [ -f /docker-mods ] && [ -f /entrypoint.sh ]; then sed -i "1a /./entrypoint.sh" /docker-mods; fi
# Modules
ARG MODULES="00-banner.sh 01-custom_script.sh"
@@ -91,6 +92,12 @@ RUN apk add --no-cache \
# 4 Entrypoint #
################
# Corrects permissions for s6 v3
RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \
if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \
if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \
if [ -f /docker-mods ] && [ -f /entrypoint.sh ]; then sed -i "1a /./entrypoint.sh" /docker-mods; fi
WORKDIR /
RUN chmod 777 /entrypoint.sh
ENTRYPOINT [ "/usr/bin/env" ]