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 |
|
7 |
-
|
8 |
|
9 |
# Set the working directory
|
10 |
|
@@ -42,7 +42,7 @@ RUN npx playwright install
|
|
42 |
|
43 |
RUN npm install -g http-server
|
44 |
# Copy the application code
|
45 |
-
COPY --chown=admin . /usr/src
|
46 |
|
47 |
|
48 |
|
@@ -51,8 +51,8 @@ COPY --chown=admin . /usr/src
|
|
51 |
|
52 |
# Give read and write permissions to the admin user
|
53 |
|
54 |
-
RUN chown -R admin:admin /usr/src
|
55 |
-
RUN chmod 755 /usr/src
|
56 |
USER admin
|
57 |
|
58 |
|
|
|
4 |
RUN useradd -ms /bin/bash admin
|
5 |
|
6 |
|
7 |
+
WORKDIR /usr/src/app
|
8 |
|
9 |
# Set the working directory
|
10 |
|
|
|
42 |
|
43 |
RUN npm install -g http-server
|
44 |
# Copy the application code
|
45 |
+
COPY --chown=admin . /usr/src/app
|
46 |
|
47 |
|
48 |
|
|
|
51 |
|
52 |
# Give read and write permissions to the admin user
|
53 |
|
54 |
+
RUN chown -R admin:admin /usr/src/app
|
55 |
+
RUN chmod 755 /usr/src/app
|
56 |
USER admin
|
57 |
|
58 |
|