123456789101112131415161718192021222324 |
- FROM node:lts-alpine
- RUN apk update && apk --no-cache add shadow && \
- usermod -u 1001 node && \
- groupmod -g 1001 node
- RUN find / -group 1000 -exec chgrp -h node {} \;
- RUN find / -user 1000 -exec chown -h node {} \;
- # RUN addgroup -g 1000 gdp && \
- # adduser -h /home/gdp -D -u 1000 gdp && \
- RUN adduser -u 1000 -G users -s /bin/sh -D gdp
- # chown -R gdp:gdp /home/gdp
- USER gdp
- COPY ./bashrc /home/gdp/.bashrc
- COPY ./inputrc /home/gdp/.inputrc
- COPY ./client-entrypoint.sh /usr/local/bin
- USER root
- RUN chmod +x /usr/local/bin/client-entrypoint.sh
- USER gdp
- CMD ["/bin/sh","/usr/local/bin/client-entrypoint.sh"]
|