Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -40,8 +40,11 @@ RUN npm install -g npm@latest
|
|
| 40 |
# Clear npm cache
|
| 41 |
RUN npm cache clean --force
|
| 42 |
|
|
|
|
|
|
|
|
|
|
| 43 |
# Install Puppeteer
|
| 44 |
-
RUN npm install puppeteer
|
| 45 |
|
| 46 |
# Create a non-root user
|
| 47 |
RUN useradd -m -u 1000 nex
|
|
|
|
| 40 |
# Clear npm cache
|
| 41 |
RUN npm cache clean --force
|
| 42 |
|
| 43 |
+
# Manually delete npm cache folder
|
| 44 |
+
RUN rm -rf /root/.npm
|
| 45 |
+
|
| 46 |
# Install Puppeteer
|
| 47 |
+
RUN mkdir -p /home/nex/app && cd /home/nex/app && npm init -y && npm install puppeteer
|
| 48 |
|
| 49 |
# Create a non-root user
|
| 50 |
RUN useradd -m -u 1000 nex
|