Skip to content

Commit

Permalink
fix: add node user as owner of files
Browse files Browse the repository at this point in the history
  • Loading branch information
98jan authored Dec 24, 2024
1 parent 1be25d2 commit 962baf0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frontend/spa/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
CMD ["/bin/bash", "-c", "/app/startup.sh"]

0 comments on commit 962baf0

Please sign in to comment.