From 8af1c8ff333041644964950a68d37b3b4b568844 Mon Sep 17 00:00:00 2001
From: Timo Furrer <tfurrer@gitlab.com>
Date: Wed, 22 May 2024 10:28:13 +0200
Subject: [PATCH] Remove /tmp after OpenTofu installation in image

Changelog: changed

Closes #45
---
 Dockerfile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Dockerfile b/Dockerfile
index 3444329..4781845 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -19,6 +19,7 @@ RUN curl --proto '=https' --tlsv1.2 -fsSL https://get.opentofu.org/install-opent
     chmod +x install-opentofu.sh && \
     ./install-opentofu.sh --install-method standalone --opentofu-version "${OPENTOFU_VERSION}" && \
     rm ./install-opentofu.sh && \
+    rm -rf /tmp/* && \
     tofu --version
 
 WORKDIR /
-- 
GitLab