diff --git a/deploy/Dockerfile b/deploy/Dockerfile
index b9b6f4d754fcf315ee0a78cd5803132452db71aa..17688fafc7ba5ddab0c691dfca052def08f9aeeb 100644
--- a/deploy/Dockerfile
+++ b/deploy/Dockerfile
@@ -26,6 +26,7 @@ RUN git clone https://github.com/NVIDIA/apex && \
 
 COPY entrypoint.sh .
 
-RUN chmod +x /entrypoint.sh
+RUN chmod +wr entrypoint.sh
+RUN chmod +x entrypoint.sh
 
-ENTRYPOINT ["/entrypoint.sh"]
\ No newline at end of file
+ENTRYPOINT ["entrypoint.sh"]
\ No newline at end of file