ADD file:b532f8e401e9a1fcc2ea1fc034adf820a5269c6ace45769f60a81fcb673f01b8 in / |
CMD ["bash"] |
ARG USERNAME |
ARG USERNAME USER_UID |
ARG USERNAME USER_GID USER_UID |
|3 USERNAME=okmachina USER_GID=1001 USER_UID=1001 /bin/sh -c groupadd --gid $USER_GID $USERNAME && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME && apt-get update && apt-get install -y sudo && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME && chmod 0440 /etc/sudoers.d/$USERNAME |
|3 USERNAME=okmachina USER_GID=1001 USER_UID=1001 /bin/sh -c apt update -y && apt install -y --no-install-recommends libssl-dev musl-dev make git ca-certificates perl curl gzip && rm -rf /var/lib/apt/lists/* |
USER $USERNAME |
|3 USERNAME=okmachina USER_GID=1001 USER_UID=1001 /bin/sh -c curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable -y |
|3 USERNAME=okmachina USER_GID=1001 USER_UID=1001 /bin/sh -c . "$HOME/.cargo/env" |
ENV CARGO_HOME=/home/$USERNAME/.cargo |
ENV SHELL=/bin/bash |