Skip to content

Commit

Permalink
AL: fix Rust image
Browse files Browse the repository at this point in the history
  • Loading branch information
adalundhe committed Feb 18, 2024
1 parent d1cb8d8 commit a534bcf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rust/Dockerfile.rust
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv
&& rm -rf awscliv2.zip \
&& rm -rf ./aws

RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

RUN groupadd --gid $USER_GID $USERNAME \
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
Expand All @@ -42,4 +40,7 @@ RUN apt clean \
&& bash /tmp/library-scripts/common_debian.sh "true" "${USERNAME}" "${USER_UID}" "${USER_GID}" "true" "true" "true" \
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts/

USER ${USERNAME}
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

COPY ./resources/rust/.envrc /.envrc

0 comments on commit a534bcf

Please sign in to comment.