diff --git a/docker/Dockerfile b/docker/Dockerfile
index 1625263ddb3cae062ea4724b5f4970adc9ddd426..43112a1e67346911506c6fe30ad11e9c8155edbd 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -63,13 +63,13 @@ RUN cd ./frontend/ && yarn build && yarn cache clean
 
 # Setup the server
 FROM server-deps as production-stage
-COPY ./server/ ./server/
+COPY --chown=anythingllm:anythingllm ./server/ ./server/
 
 # Copy built static frontend files to the server public directory
 COPY --from=build-stage /app/frontend/dist ./server/public
 
 # Copy the collector
-COPY ./collector/ ./collector/
+COPY --chown=anythingllm:anythingllm ./collector/ ./collector/
 
 # Install collector dependencies
 RUN cd /app/collector && \