40 lines
1.2 KiB
Docker
40 lines
1.2 KiB
Docker
FROM node:lts-bullseye
|
|
|
|
# THE ALL USER THINGS IS USELESS AS NODE IS ALREADY A USER @ 1000
|
|
|
|
# RUN find / -group 1000 -exec chgrp -h node {} \;
|
|
# RUN find / -user 1000 -exec chown -h node {} \;
|
|
|
|
# ARG USER_UID
|
|
# ARG USER_UNAME
|
|
# ARG USER_GID
|
|
# ARG USER_GNAME
|
|
|
|
|
|
# # RUN addgroup -g 1000 gdp && \
|
|
# # adduser -h /home/gdp -D -u 1000 gdp && \
|
|
# RUN adduser -u ${USER_UID} -G users -s /bin/sh -D ${USER_UNAME}
|
|
# # chown -R gdp:gdp /home/gdp
|
|
|
|
# RUN if getent group ${USER_GNAME} ; then groupdel ${USER_GNAME}; fi
|
|
# RUN groupadd -g ${USER_GID} ${USER_GNAME}
|
|
# RUN useradd -l -u ${USER_UID} -g ${USER_GNAME} ${USER_UNAME}
|
|
# RUN install -d -m 0755 -o ${USER_UNAME} -g ${USER_GNAME} /home/${USER_UNAME}
|
|
# RUN chown --changes --silent --no-dereference --recursive \
|
|
# --from=33:33 ${USER_UID}:${USER_GID} \
|
|
# /home/${USER_UNAME}
|
|
|
|
# USER ${USER_UNAME}
|
|
|
|
# COPY ./bashrc /home/${USER_UNAME}/.bashrc
|
|
# COPY ./inputrc /home/${USER_UNAME}/.inputrc
|
|
|
|
# COPY ./bashrc /home/node/.bashrc # should do an echo in already existing /home/node/.bashcr
|
|
COPY ./inputrc /home/node/.inputrc
|
|
|
|
COPY ./client-entrypoint.sh /usr/local/bin
|
|
# USER root
|
|
RUN chmod +x /usr/local/bin/client-entrypoint.sh
|
|
# USER ${USER_UNAME}
|
|
CMD ["/bin/sh","/usr/local/bin/client-entrypoint.sh"]
|