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
RUN \
# Change home folder location
usermod --home /share/webtop_kde abc && \
\
# Hook scripts
sed -i "1a /./entrypoint.sh" /etc/s6-overlay/s6-rc.d/init-adduser/run
usermod --home /share/webtop_kde abc
# Global LSIO modifications
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 #
################
#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 /
#ENTRYPOINT [ "/usr/bin/env" ]
#CMD [ "/entrypoint.sh" ]