Update Dockerfile
Browse files- Dockerfile +47 -0
Dockerfile
CHANGED
|
@@ -5,6 +5,53 @@ ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD 1
|
|
| 5 |
|
| 6 |
# Tentukan work directory
|
| 7 |
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
RUN which chromium-browser
|
| 9 |
|
| 10 |
# Copy file package.json dan package-lock.json
|
|
|
|
| 5 |
|
| 6 |
# Tentukan work directory
|
| 7 |
WORKDIR /app
|
| 8 |
+
|
| 9 |
+
RUN apt-get update && apt-get install -y \
|
| 10 |
+
chromium-browser \
|
| 11 |
+
gconf-service \
|
| 12 |
+
libasound2 \
|
| 13 |
+
libatk1.0-0 \
|
| 14 |
+
libc6 \
|
| 15 |
+
libcairo2 \
|
| 16 |
+
libcups2 \
|
| 17 |
+
libdbus-1-3 \
|
| 18 |
+
libexpat1 \
|
| 19 |
+
libfontconfig1 \
|
| 20 |
+
libgcc1 \
|
| 21 |
+
libgconf-2-4 \
|
| 22 |
+
libgdk-pixbuf2.0-0 \
|
| 23 |
+
libglib2.0-0 \
|
| 24 |
+
libgtk-3-0 \
|
| 25 |
+
libnspr4 \
|
| 26 |
+
libpango-1.0-0 \
|
| 27 |
+
libpangocairo-1.0-0 \
|
| 28 |
+
libstdc++6 \
|
| 29 |
+
libx11-6 \
|
| 30 |
+
libx11-xcb1 \
|
| 31 |
+
libxcb1 \
|
| 32 |
+
libxcomposite1 \
|
| 33 |
+
libxcursor1 \
|
| 34 |
+
libxdamage1 \
|
| 35 |
+
libxext6 \
|
| 36 |
+
libxfixes3 \
|
| 37 |
+
libxi6 \
|
| 38 |
+
libxrandr2 \
|
| 39 |
+
libxrender1 \
|
| 40 |
+
libxss1 \
|
| 41 |
+
libxtst6 \
|
| 42 |
+
ca-certificates \
|
| 43 |
+
fonts-liberation \
|
| 44 |
+
libappindicator1 \
|
| 45 |
+
libnss3 \
|
| 46 |
+
lsb-release \
|
| 47 |
+
xdg-utils \
|
| 48 |
+
wget \
|
| 49 |
+
--no-install-recommends \
|
| 50 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 51 |
+
|
| 52 |
+
# 2. VERIFIKASI LOKASI CHROMIUM-BROWSER
|
| 53 |
+
# Sekarang setelah diinstal, 'which' seharusnya berhasil.
|
| 54 |
+
# Output ini akan muncul saat build.
|
| 55 |
RUN which chromium-browser
|
| 56 |
|
| 57 |
# Copy file package.json dan package-lock.json
|