fixed build

This commit is contained in:
veeso
2022-10-10 17:26:26 +02:00
parent 8b67c59247
commit 0f432d0375
2 changed files with 8 additions and 4 deletions

View File

@@ -8,8 +8,11 @@ RUN yum -y install \
git \
gcc \
pkgconfig \
gcc \
make \
dbus-devel \
bash
bash \
rpm-build
# Install rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rust.sh && \
chmod +x /tmp/rust.sh && \
@@ -18,10 +21,10 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rust.sh &&
RUN git clone --branch $branch https://github.com/veeso/termscp.git
# Set workdir to termscp
WORKDIR /usr/src/termscp/
# Install cargo arxch
RUN source $HOME/.cargo/env && cargo install cargo-rpm
# Build for x86_64
RUN source $HOME/.cargo/env && cargo build --release
# Install cargo rpm
RUN source $HOME/.cargo/env && cargo install cargo-rpm
# Build pkgs
RUN source $HOME/.cargo/env && yum -y install rpm-build && cargo rpm init && cargo rpm build
RUN source $HOME/.cargo/env && cargo rpm init && cargo rpm build
CMD ["sh"]

View File

@@ -9,6 +9,7 @@ RUN apt update && apt install -y \
gcc \
pkg-config \
libdbus-1-dev \
build-essential \
bash \
curl