bardd commited on
Commit
5c9430c
·
verified ·
1 Parent(s): 7c96b6d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -12,8 +12,13 @@ EXPOSE 8080
12
  # Set the working directory
13
  WORKDIR /app/backend
14
 
15
- # Make sure the start.sh script is executable
16
- RUN chmod +x start.sh
 
 
 
 
 
17
 
18
  # Run the start.sh script
19
  CMD ["./start.sh"]
 
12
  # Set the working directory
13
  WORKDIR /app/backend
14
 
15
+ # Make sure the start.sh script is executable and set permissions for the database directory
16
+ RUN chmod +x start.sh && \
17
+ mkdir -p /app/backend/data && \
18
+ chown -R nobody:nogroup /app/backend/data
19
+
20
+ # Switch to a non-root user
21
+ USER nobody
22
 
23
  # Run the start.sh script
24
  CMD ["./start.sh"]