Skip to content

Commit 146f663

Browse files
committed
fix: rust linker
1 parent 22c0a0c commit 146f663

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RUN dnf update -y && \
1818
htop \
1919
podman slirp4netns fuse-overlayfs --exclude container-selinux && \
2020
dnf reinstall -y shadow-utils && \
21-
ln -s /usr/bin/ld.bfd /usr/bin/ld && \
2221
dnf clean all && \
2322
rm -rf /var/cache /var/log/dnf* /var/log/yum.*
2423

@@ -108,6 +107,14 @@ USER queil
108107

109108
FROM base as rust
110109

110+
USER root
111+
112+
RUN dnf -y update && dnf install -y gcc && \
113+
dnf clean all && \
114+
rm -rf /var/cache /var/log/dnf* /var/log/yum.*
115+
116+
USER queil
117+
111118
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
112119

113120
ENV PATH="${PATH}:${HOME}/.cargo/bin"

0 commit comments

Comments
 (0)