From 962baf0a9b03687431e791e9300a8880c99c8ed6 Mon Sep 17 00:00:00 2001 From: Jan <46779261+98jan@users.noreply.github.com> Date: Tue, 24 Dec 2024 18:35:16 +0100 Subject: [PATCH] fix: add node user as owner of files --- frontend/spa/docker/Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/spa/docker/Dockerfile b/frontend/spa/docker/Dockerfile index 879fd492..37cbaf1a 100644 --- a/frontend/spa/docker/Dockerfile +++ b/frontend/spa/docker/Dockerfile @@ -42,7 +42,13 @@ RUN npm install express EXPOSE 8080 COPY ../docker/replaceEnvs.sh ./replaceEnvs.sh COPY ../docker/startup.sh ./startup.sh + +# Make scripts executable RUN chmod +x ./replaceEnvs.sh RUN chmod +x ./startup.sh + +# add node user as owner +RUN chown node:node /app/* + # Start the server -CMD ["/bin/bash", "-c", "/app/startup.sh"] \ No newline at end of file +CMD ["/bin/bash", "-c", "/app/startup.sh"]