mirror of
https://github.com/veeso/termscp.git
synced 2026-09-29 07:21:21 -07:00
use branch in docker build
This commit is contained in:
committed by
Christian Visintin
parent
67d48e7a79
commit
a25ee67cd3
Vendored
+3
-1
@@ -1,5 +1,7 @@
|
||||
FROM centos:centos7 as builder
|
||||
|
||||
ARG branch
|
||||
ENV branch=$branch
|
||||
WORKDIR /usr/src/
|
||||
# Install dependencies
|
||||
RUN yum -y install \
|
||||
@@ -15,7 +17,7 @@ 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 https://github.com/veeso/termscp.git
|
||||
RUN git clone --branch $branch https://github.com/veeso/termscp.git
|
||||
# Set workdir to termscp
|
||||
WORKDIR /usr/src/termscp/
|
||||
# Install cargo arxch
|
||||
|
||||
Reference in New Issue
Block a user