mirror of
https://github.com/CompeyDev/ruck.git
synced 2025-01-09 20:19:09 +00:00
fix: run GLIBC build commands as root
This commit is contained in:
parent
fb19cad0f5
commit
c3127c4863
1 changed files with 4 additions and 4 deletions
|
@ -22,16 +22,16 @@ RUN cargo build --release
|
||||||
# Copy the binary into a new container for a smaller docker image
|
# Copy the binary into a new container for a smaller docker image
|
||||||
FROM debian:buster-slim
|
FROM debian:buster-slim
|
||||||
|
|
||||||
RUN sudo apt install build-essential
|
RUN USER=root apt install build-essential
|
||||||
|
|
||||||
RUN wget -4c https://ftp.gnu.org/gnu/glibc/glibc-2.29.tar.gz
|
RUN wget -4c https://ftp.gnu.org/gnu/glibc/glibc-2.29.tar.gz
|
||||||
RUN tar -zxvf glibc-2.29.tar.gz
|
RUN tar -zxvf glibc-2.29.tar.gz
|
||||||
RUN cd glibc-2.29
|
RUN cd glibc-2.29
|
||||||
RUN mkdir build_dir
|
RUN mkdir build_dir
|
||||||
RUN cd build_dir
|
RUN cd build_dir
|
||||||
RUN sudo ../configure --prefix=/opt/glibc
|
RUN USER=root ../configure --prefix=/opt/glibc
|
||||||
RUN sudo make
|
RUN USER=root make
|
||||||
RUN sudo make install
|
RUN USER=root make install
|
||||||
|
|
||||||
COPY --from=build /ruck/target/release/ruck /
|
COPY --from=build /ruck/target/release/ruck /
|
||||||
USER root
|
USER root
|
||||||
|
|
Loading…
Reference in a new issue