diff --git a/keystore-truststore-from-tls-secret.dockerfile b/keystore-truststore-from-tls-secret.dockerfile
index 1d8a2c6f49e44000a10893449525a40ff7c58098..a1a32fa07d56cff3a8db958db1b09b31513e2046 100644
--- a/keystore-truststore-from-tls-secret.dockerfile
+++ b/keystore-truststore-from-tls-secret.dockerfile
@@ -2,8 +2,8 @@ FROM alpine:3.21
 
 RUN apk add --no-cache openssl openjdk11
 
-COPY src/main/resources/store/keystore-truststore-from-tls-secret.sh ./
+COPY src/main/resources/store/keystore-truststore-from-tls-secret.sh /opt/
 
 VOLUME /store /tls
 
-ENTRYPOINT [ "/bin/sh", "keystore-truststore-from-tls-secret.sh" ]
\ No newline at end of file
+ENTRYPOINT [ "/bin/sh", "/opt/keystore-truststore-from-tls-secret.sh" ]
\ No newline at end of file
diff --git a/src/main/helm/templates/deployment.yaml b/src/main/helm/templates/deployment.yaml
index b0aa5db7112088027d2cc4f0f6ad2c41f706718f..e07e2a70ee1e579633495d1e835ce474031ae692 100644
--- a/src/main/helm/templates/deployment.yaml
+++ b/src/main/helm/templates/deployment.yaml
@@ -60,6 +60,7 @@ spec:
       initContainers:
         - name: init-keystore-and-truststore
           image: docker.ozg-sh.de/keystore-truststore-from-tls-secret:latest
+          command: ["/bin/sh", "/opt/keystore-truststore-from-tls-secret.sh"]
           volumeMounts:
             - name: xta-test-server-tls-store
               mountPath: "/tls/"