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