mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
optimized docker builds (re-use containers)
This commit is contained in:
10
dist/build/aarch64_debian9/Dockerfile
vendored
10
dist/build/aarch64_debian9/Dockerfile
vendored
@@ -1,7 +1,5 @@
|
||||
FROM debian:stretch
|
||||
|
||||
ARG branch
|
||||
ENV branch=$branch
|
||||
WORKDIR /usr/src/
|
||||
# Install dependencies
|
||||
RUN apt update && apt install -y \
|
||||
@@ -18,14 +16,10 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rust.sh &&
|
||||
chmod +x /tmp/rust.sh && \
|
||||
/tmp/rust.sh -y
|
||||
# Clone repository
|
||||
RUN git clone --branch $branch https://github.com/veeso/termscp.git
|
||||
RUN git clone https://github.com/veeso/termscp.git
|
||||
# Set workdir to termscp
|
||||
WORKDIR /usr/src/termscp/
|
||||
# Install cargo deb
|
||||
RUN . $HOME/.cargo/env && cargo install cargo-deb
|
||||
# Build for x86_64
|
||||
RUN . $HOME/.cargo/env && cargo build --release
|
||||
# Build pkgs
|
||||
RUN . $HOME/.cargo/env && cargo deb
|
||||
|
||||
CMD ["bash"]
|
||||
ENTRYPOINT ["tail", "-f", "/dev/null"]
|
||||
|
||||
Reference in New Issue
Block a user