Instead of pulling the latest code, specify the exact version to improve
reproducibility.

Fixes: 8a87d1ae9585 ("Dockerfile: build swtpm")
Signed-off-by: Yao Zi <[email protected]>
---
 tools/docker/Dockerfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile
index ebb679a5f466..fb8e2c523aad 100644
--- a/tools/docker/Dockerfile
+++ b/tools/docker/Dockerfile
@@ -312,7 +312,7 @@ RUN git clone https://github.com/stefanberger/libtpms 
/tmp/libtpms && \
        rm -rf /tmp/libtpms
 
 # Build swtpm
-RUN git clone https://github.com/stefanberger/swtpm /tmp/swtpm && \
+RUN git clone https://github.com/stefanberger/swtpm /tmp/swtpm -b v0.10.1 && \
        cd /tmp/swtpm && \
        ./autogen.sh && \
        ./configure && \
-- 
2.54.0

Reply via email to