Update Dockerfile

This commit is contained in:
Alexandre
2023-08-03 16:06:27 +02:00
committed by GitHub
parent cab21325e3
commit fb587dfdd4

View File

@@ -31,10 +31,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
# hadolint ignore=SC2015,DL4006,SC2013,SC2086 # hadolint ignore=SC2015,DL4006,SC2013,SC2086
RUN \ RUN \
# Change home folder location # Change home folder location
usermod --home /share/webtop_kde abc && \ usermod --home /share/webtop_kde abc
\
# Hook scripts
sed -i "1a /./entrypoint.sh" /etc/s6-overlay/s6-rc.d/init-adduser/run
# Global LSIO modifications # Global LSIO modifications
ARG CONFIGLOCATION="/share/webtop_kde" ARG CONFIGLOCATION="/share/webtop_kde"
@@ -100,7 +97,11 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
# 4 Entrypoint # # 4 Entrypoint #
################ ################
#RUN chmod 777 /entrypoint.sh # Entrypoint logic
RUN chmod 777 /entrypoint.sh && \
mv /etc/cont-init.d/* /etc/scripts && \
sed -i "s|/etc/cont-init.d|/etc/scripts|g" /entrypoint.sh && \
sed -i "1a /./entrypoint.sh" /etc/s6-overlay/s6-rc.d/init-adduser/run
#WORKDIR / #WORKDIR /
#ENTRYPOINT [ "/usr/bin/env" ] #ENTRYPOINT [ "/usr/bin/env" ]
#CMD [ "/entrypoint.sh" ] #CMD [ "/entrypoint.sh" ]