Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +8 -10
Dockerfile
CHANGED
|
@@ -38,16 +38,14 @@ RUN git clone https://github.com/Kingdavid102/my-api.git /app-temp && \
|
|
| 38 |
# Install dependencies
|
| 39 |
RUN npm install
|
| 40 |
|
| 41 |
-
#
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
mkdir -p /app/screenshots && \
|
| 50 |
-
chown -R node:node /app/screenshots
|
| 51 |
|
| 52 |
# Run as non-root user
|
| 53 |
USER node
|
|
|
|
| 38 |
# Install dependencies
|
| 39 |
RUN npm install
|
| 40 |
|
| 41 |
+
# Set Playwright cache path
|
| 42 |
+
ENV PLAYWRIGHT_BROWSERS_PATH=/home/node/.cache/ms-playwright
|
| 43 |
+
|
| 44 |
+
# Install Playwright browsers (force full installation)
|
| 45 |
+
RUN npx playwright install --with-deps chromium
|
| 46 |
+
|
| 47 |
+
# Fix permissions for Playwright
|
| 48 |
+
RUN chmod -R 777 /home/node/.cache/ms-playwright
|
|
|
|
|
|
|
| 49 |
|
| 50 |
# Run as non-root user
|
| 51 |
USER node
|