Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +11 -0
Dockerfile
CHANGED
|
@@ -1,6 +1,12 @@
|
|
| 1 |
# Menggunakan image Node.js yang lebih stabil
|
| 2 |
FROM node:16-slim
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
# Tentukan direktori kerja di dalam container
|
| 5 |
WORKDIR /app
|
| 6 |
|
|
@@ -29,6 +35,11 @@ COPY package*.json ./
|
|
| 29 |
# Install dependensi Node.js
|
| 30 |
RUN npm install
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
# Salin seluruh kode aplikasi ke dalam container
|
| 33 |
COPY . .
|
| 34 |
|
|
|
|
| 1 |
# Menggunakan image Node.js yang lebih stabil
|
| 2 |
FROM node:16-slim
|
| 3 |
|
| 4 |
+
FROM mcr.microsoft.com/playwright:focal
|
| 5 |
+
|
| 6 |
+
# Set environment variable untuk menghindari dialog pada Playwright
|
| 7 |
+
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD 1
|
| 8 |
+
|
| 9 |
+
|
| 10 |
# Tentukan direktori kerja di dalam container
|
| 11 |
WORKDIR /app
|
| 12 |
|
|
|
|
| 35 |
# Install dependensi Node.js
|
| 36 |
RUN npm install
|
| 37 |
|
| 38 |
+
# Install Playwright dependencies dan browser binaries
|
| 39 |
+
RUN npx playwright install --with-deps
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
|
| 43 |
# Salin seluruh kode aplikasi ke dalam container
|
| 44 |
COPY . .
|
| 45 |
|