Yakova commited on
Commit
afef2bb
·
verified ·
1 Parent(s): 13e22d3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -4
Dockerfile CHANGED
@@ -5,6 +5,11 @@ RUN useradd -ms /bin/bash admin
5
 
6
 
7
 
 
 
 
 
 
8
  RUN npm install --no-cache
9
 
10
 
@@ -36,18 +41,18 @@ RUN npx playwright install
36
 
37
 
38
  RUN npm install -g http-server
39
-
40
-
41
  # Copy the application code
42
- COPY . .
43
 
44
 
45
 
46
 
47
 
48
- # Give read and write permissions to the admin user
49
 
 
50
 
 
 
51
  USER admin
52
 
53
 
 
5
 
6
 
7
 
8
+
9
+ # Set the working directory
10
+ WORKDIR /usr
11
+
12
+
13
  RUN npm install --no-cache
14
 
15
 
 
41
 
42
 
43
  RUN npm install -g http-server
 
 
44
  # Copy the application code
45
+ COPY --chown=admin . /usr
46
 
47
 
48
 
49
 
50
 
 
51
 
52
+ # Give read and write permissions to the admin user
53
 
54
+ RUN chown -R admin:admin /usr
55
+ RUN chmod 755 /usr
56
  USER admin
57
 
58