Update Dockerfile
Browse files- Dockerfile +0 -6
Dockerfile
CHANGED
|
@@ -33,13 +33,8 @@ RUN apt-get update && \
|
|
| 33 |
# 2. Install Playwright and browsers globally (kept for future use)
|
| 34 |
###############################################################################
|
| 35 |
ENV PLAYWRIGHT_BROWSERS_PATH=/home/node/.cache/ms-playwright
|
| 36 |
-
|
| 37 |
-
# install as root so chromium is available system-wide, then fix perms
|
| 38 |
-
USER root
|
| 39 |
RUN npx playwright install --with-deps chromium && \
|
| 40 |
-
mkdir -p /home/node/.cache/ms-playwright && \
|
| 41 |
chmod -R 777 /home/node/.cache/ms-playwright
|
| 42 |
-
USER node
|
| 43 |
|
| 44 |
###############################################################################
|
| 45 |
# 3. Startup script (clone repo at run-time like the second Dockerfile)
|
|
@@ -61,7 +56,6 @@ chmod -R 777 /tmp/app
|
|
| 61 |
|
| 62 |
exec npm start
|
| 63 |
start.sh
|
| 64 |
-
|
| 65 |
RUN chmod +x /usr/local/bin/start.sh
|
| 66 |
|
| 67 |
###############################################################################
|
|
|
|
| 33 |
# 2. Install Playwright and browsers globally (kept for future use)
|
| 34 |
###############################################################################
|
| 35 |
ENV PLAYWRIGHT_BROWSERS_PATH=/home/node/.cache/ms-playwright
|
|
|
|
|
|
|
|
|
|
| 36 |
RUN npx playwright install --with-deps chromium && \
|
|
|
|
| 37 |
chmod -R 777 /home/node/.cache/ms-playwright
|
|
|
|
| 38 |
|
| 39 |
###############################################################################
|
| 40 |
# 3. Startup script (clone repo at run-time like the second Dockerfile)
|
|
|
|
| 56 |
|
| 57 |
exec npm start
|
| 58 |
start.sh
|
|
|
|
| 59 |
RUN chmod +x /usr/local/bin/start.sh
|
| 60 |
|
| 61 |
###############################################################################
|