Files
termscp/dist/build/x86_64/Dockerfile
2021-09-10 20:51:05 +02:00

20 lines
536 B
Docker

FROM rust:1.55.0 AS builder
WORKDIR /usr/src/
# Add toolchains
RUN rustup target add x86_64-unknown-linux-gnu
# Install dependencies
RUN apt update && apt install -y rpm
# Clone repository
RUN git clone https://github.com/veeso/termscp.git
# Set workdir to termscp
WORKDIR /usr/src/termscp/
# Install cargo RPM/Deb
RUN cargo install cargo-deb cargo-rpm cargo-strip
# Build for x86_64
RUN cargo build --release --target x86_64-unknown-linux-gnu && cargo strip
# Build pkgs
RUN cargo deb && cargo rpm init && cargo rpm build
CMD ["sh"]