From f5d672783d570773426d2d4200b1c6874b4414ff Mon Sep 17 00:00:00 2001
From: "a.foroughi" <pyhp2017@gmail.com>
Date: Fri, 21 Jul 2023 21:29:14 +0330
Subject: [PATCH] Fix geesefs path, which in current version doens't work and
 user will see timeout message in the logs

---
 Dockerfile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 75ed846..6453ef4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -14,8 +14,8 @@ LABEL description="csi-s3 slim image"
 RUN apk add --no-cache fuse
 #RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/community rclone s3fs-fuse
 
-ADD https://github.com/yandex-cloud/geesefs/releases/latest/download/geesefs-linux-amd64 /usr/bin/geesefs
-RUN chmod 755 /usr/bin/geesefs
+ADD https://github.com/yandex-cloud/geesefs/releases/latest/download/geesefs-linux-amd64 /var/lib/kubelet/plugins/ru.yandex.s3.csi/geesefs
+RUN chmod 755 /var/lib/kubelet/plugins/ru.yandex.s3.csi/geesefs
 
 COPY --from=gobuild /build/s3driver /s3driver
 ENTRYPOINT ["/s3driver"]