diff --git a/PythonServer/Dockerfile b/PythonServer/Dockerfile
index ca7fc67d3a778955c2fbbc645bbcd7c6dcfa715e..13489c6fb24f04c97d43e0f6e89294a3875ec3f0 100644
--- a/PythonServer/Dockerfile
+++ b/PythonServer/Dockerfile
@@ -13,6 +13,8 @@ RUN conda update -n base conda \
   && conda clean -tipsy
 
 COPY --chown=csi:csi pos-python-server.py /app/
+# Make sure the /app directory is owned by csi
+RUN chown -R csi:csi /app
 WORKDIR /app
 
 USER csi