Update Dockerfile
Browse files- Dockerfile +3 -5
Dockerfile
CHANGED
|
@@ -3,8 +3,7 @@ FROM mbonea/whats-ramsey:0.0.4
|
|
| 3 |
# Create a non-root user
|
| 4 |
RUN useradd -ms /bin/bash admin
|
| 5 |
|
| 6 |
-
|
| 7 |
-
WORKDIR /
|
| 8 |
|
| 9 |
RUN npm install --no-cache
|
| 10 |
|
|
@@ -40,7 +39,7 @@ RUN npm install -g http-server
|
|
| 40 |
|
| 41 |
|
| 42 |
# Copy the application code
|
| 43 |
-
COPY
|
| 44 |
|
| 45 |
|
| 46 |
|
|
@@ -48,8 +47,7 @@ COPY --chown=admin . /
|
|
| 48 |
|
| 49 |
# Give read and write permissions to the admin user
|
| 50 |
|
| 51 |
-
|
| 52 |
-
RUN chmod 755 /
|
| 53 |
USER admin
|
| 54 |
|
| 55 |
|
|
|
|
| 3 |
# Create a non-root user
|
| 4 |
RUN useradd -ms /bin/bash admin
|
| 5 |
|
| 6 |
+
|
|
|
|
| 7 |
|
| 8 |
RUN npm install --no-cache
|
| 9 |
|
|
|
|
| 39 |
|
| 40 |
|
| 41 |
# Copy the application code
|
| 42 |
+
COPY . .
|
| 43 |
|
| 44 |
|
| 45 |
|
|
|
|
| 47 |
|
| 48 |
# Give read and write permissions to the admin user
|
| 49 |
|
| 50 |
+
|
|
|
|
| 51 |
USER admin
|
| 52 |
|
| 53 |
|