We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eae746a commit c2af878Copy full SHA for c2af878
dev/Dockerfile
@@ -14,6 +14,11 @@
14
15
FROM almalinux:9
16
17
+ARG TAG
18
+
19
+# Fail early if TAG is not provided
20
+RUN test -n "$TAG" || (echo "No TAG specified. Exiting." && exit 1)
21
22
WORKDIR /
23
24
RUN dnf -y install yum-utils epel-release.noarch && \
@@ -57,9 +62,7 @@ RUN dnf -y install yum-utils epel-release.noarch && \
57
62
58
63
RUN curl https://rclone.org/install.sh | bash
59
64
60
-ARG GIT_CLONE_ARGS="--depth 1 https://github.com/rucio/rucio.git"
61
-
-RUN git clone $GIT_CLONE_ARGS /tmp/rucio && rm -rf /tmp/rucio/.git
65
+RUN git clone --depth 1 --branch "$TAG" https://github.com/rucio/rucio.git /tmp/rucio && rm -rf /tmp/rucio/.git
66
67
ENV RUCIOHOME=/opt/rucio
68
RUN mkdir -p $RUCIOHOME && \
0 commit comments