Set the root and user passwords to password in the Dockerfiles
This commit is contained in:
parent
78a0c4de62
commit
8329838383
@ -12,7 +12,8 @@ RUN apt-get update && apt-get -y upgrade && \
|
|||||||
xxd iptables isc-dhcp-client isc-dhcp-common kmod less netcat-openbsd
|
xxd iptables isc-dhcp-client isc-dhcp-common kmod less netcat-openbsd
|
||||||
|
|
||||||
# Make a user, then copy over the /example directory
|
# Make a user, then copy over the /example directory
|
||||||
RUN useradd -m user
|
RUN useradd -m user && echo "user:password" | chpasswd
|
||||||
COPY --chown=user:user ./examples /home/user/examples
|
COPY --chown=user:user ./examples /home/user/examples
|
||||||
RUN chmod -R +x /home/user/examples/lua
|
RUN chmod -R +x /home/user/examples/lua
|
||||||
|
RUN echo 'root:password' | chpasswd
|
||||||
CMD [ "/bin/bash" ]
|
CMD [ "/bin/bash" ]
|
@ -7,7 +7,8 @@ RUN apt-get -y install apt-utils gcc \
|
|||||||
patch wamerican ucf manpages \
|
patch wamerican ucf manpages \
|
||||||
file luajit make lua50 dialog curl \
|
file luajit make lua50 dialog curl \
|
||||||
less cowsay netcat-openbsd
|
less cowsay netcat-openbsd
|
||||||
RUN useradd -m user
|
RUN useradd -m user && echo "user:password" | chpasswd
|
||||||
COPY --chown=user:user ./examples /home/user/examples
|
COPY --chown=user:user ./examples /home/user/examples
|
||||||
RUN chmod -R +x /home/user/examples/lua
|
RUN chmod -R +x /home/user/examples/lua
|
||||||
|
RUN echo 'root:password' | chpasswd
|
||||||
CMD [ "/bin/bash" ]
|
CMD [ "/bin/bash" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user