Yakova commited on
Commit
d283ee2
·
verified ·
1 Parent(s): cc80e6b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -4,7 +4,7 @@ FROM mbonea/whats-ramsey:0.0.4
4
  RUN useradd -ms /bin/bash admin
5
 
6
  # Set the working directory
7
- WORKDIR /srv
8
 
9
  RUN npm install --no-cache
10
 
@@ -40,7 +40,7 @@ RUN npm install -g http-server
40
 
41
 
42
  # Copy the application code
43
- COPY --chown=admin . /srv
44
 
45
 
46
 
@@ -48,8 +48,8 @@ COPY --chown=admin . /srv
48
 
49
  # Give read and write permissions to the admin user
50
 
51
- RUN chown -R admin:admin /srv
52
- RUN chmod 755 /srv
53
  USER admin
54
 
55
 
 
4
  RUN useradd -ms /bin/bash admin
5
 
6
  # Set the working directory
7
+ WORKDIR /
8
 
9
  RUN npm install --no-cache
10
 
 
40
 
41
 
42
  # Copy the application code
43
+ COPY --chown=admin . /
44
 
45
 
46
 
 
48
 
49
  # Give read and write permissions to the admin user
50
 
51
+ RUN chown -R admin:admin /
52
+ RUN chmod 755 /
53
  USER admin
54
 
55