diff --git a/.dockerignore b/.dockerignore
index 86cc8f6087..a1611a1ca5 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -94,6 +94,9 @@ cpu.out
 /.air
 /.go-licenses
 
+# Files and folders that were previously generated
+/public/assets/img/webpack
+
 # Snapcraft
 snap/.snapcraft/
 parts/
diff --git a/.gitignore b/.gitignore
index be8db3b51d..ebbed981e1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -101,6 +101,9 @@ cpu.out
 /.go-licenses
 /.cur-deadcode-out
 
+# Files and folders that were previously generated
+/public/assets/img/webpack
+
 # Snapcraft
 /gitea_a*.txt
 snap/.snapcraft/