Update Dockerfile
Browse files- 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 /
|
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 . /
|
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 /
|
52 |
-
RUN chmod 755 /
|
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 |
|