Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -7,7 +7,7 @@ RUN useradd -ms /bin/bash admin
|
|
7 |
|
8 |
|
9 |
# Set the working directory
|
10 |
-
WORKDIR /usr
|
11 |
|
12 |
|
13 |
RUN npm install --no-cache
|
@@ -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
|
46 |
|
47 |
|
48 |
|
@@ -51,8 +51,8 @@ COPY --chown=admin . /usr
|
|
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 |
|
|
|
7 |
|
8 |
|
9 |
# Set the working directory
|
10 |
+
WORKDIR /usr/src
|
11 |
|
12 |
|
13 |
RUN npm install --no-cache
|
|
|
42 |
|
43 |
RUN npm install -g http-server
|
44 |
# Copy the application code
|
45 |
+
COPY --chown=admin . /usr/src
|
46 |
|
47 |
|
48 |
|
|
|
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 |
|