Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +47 -20
Dockerfile
CHANGED
|
@@ -3,30 +3,57 @@ FROM node:latest
|
|
| 3 |
# Tentukan direktori kerja di dalam container
|
| 4 |
WORKDIR /app
|
| 5 |
|
| 6 |
-
#
|
| 7 |
-
|
|
|
|
| 8 |
|
| 9 |
-
# Perbarui apt-get dan instal dependensi sistem yang diperlukan untuk Canvas
|
| 10 |
RUN apt-get update && apt-get install -y \
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
ca-certificates \
|
| 13 |
-
|
| 14 |
-
|
| 15 |
lsb-release \
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
libpangoft2-1.0-0 \
|
| 22 |
-
libcairo2 \
|
| 23 |
-
libjpeg-dev \
|
| 24 |
-
libgif-dev \
|
| 25 |
-
librsvg2-dev \
|
| 26 |
-
libpixman-1-0 \
|
| 27 |
-
libharfbuzz-dev \
|
| 28 |
-
libfribidi-dev \
|
| 29 |
-
fontconfig && \
|
| 30 |
apt-get clean
|
| 31 |
|
| 32 |
# Salin package.json dan package-lock.json terlebih dahulu
|
|
|
|
| 3 |
# Tentukan direktori kerja di dalam container
|
| 4 |
WORKDIR /app
|
| 5 |
|
| 6 |
+
# Tentukan environment variable (timezone)
|
| 7 |
+
ENV TZ=Asia/Jakarta \
|
| 8 |
+
DEBIAN_FRONTEND=noninteractive
|
| 9 |
|
| 10 |
+
# Perbarui apt-get dan instal dependensi sistem yang diperlukan untuk Express.js dan Canvas
|
| 11 |
RUN apt-get update && apt-get install -y \
|
| 12 |
+
chromium \
|
| 13 |
+
ffmpeg \
|
| 14 |
+
imagemagick \
|
| 15 |
+
libnss3-dev \
|
| 16 |
+
webp \
|
| 17 |
+
gconf-service \
|
| 18 |
+
libasound2 \
|
| 19 |
+
libatk1.0-0 \
|
| 20 |
+
libc6 \
|
| 21 |
+
libcairo2 \
|
| 22 |
+
libcups2 \
|
| 23 |
+
libdbus-1-3 \
|
| 24 |
+
libexpat1 \
|
| 25 |
+
libfontconfig1 \
|
| 26 |
+
libgcc1 \
|
| 27 |
+
libgconf-2-4 \
|
| 28 |
+
libgdk-pixbuf2.0-0 \
|
| 29 |
+
libglib2.0-0 \
|
| 30 |
+
libgtk-3-0 \
|
| 31 |
+
libnspr4 \
|
| 32 |
+
libpango-1.0-0 \
|
| 33 |
+
libpangocairo-1.0-0 \
|
| 34 |
+
libstdc++6 \
|
| 35 |
+
libx11-6 \
|
| 36 |
+
libx11-xcb1 \
|
| 37 |
+
libxcb1 \
|
| 38 |
+
libxcomposite1 \
|
| 39 |
+
libxcursor1 \
|
| 40 |
+
libxdamage1 \
|
| 41 |
+
libxext6 \
|
| 42 |
+
libxfixes3 \
|
| 43 |
+
libxi6 \
|
| 44 |
+
libxrandr2 \
|
| 45 |
+
libxrender1 \
|
| 46 |
+
libxss1 \
|
| 47 |
+
libxtst6 \
|
| 48 |
ca-certificates \
|
| 49 |
+
fonts-liberation \
|
| 50 |
+
libappindicator1 \
|
| 51 |
lsb-release \
|
| 52 |
+
xdg-utils \
|
| 53 |
+
fonts-dejavu \
|
| 54 |
+
fonts-noto-color-emoji \
|
| 55 |
+
libfontconfig1 \
|
| 56 |
+
--no-install-recommends && \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
apt-get clean
|
| 58 |
|
| 59 |
# Salin package.json dan package-lock.json terlebih dahulu
|