Aqso commited on
Commit
9ec57d0
·
verified ·
1 Parent(s): 1283313

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:20-slim
2
+
3
+ # Install dependencies untuk Chromium
4
+ RUN apt-get update && apt-get install -y \
5
+ chromium \
6
+ fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 \
7
+ --no-install-recommends && rm -rf /var/lib/apt/lists/*
8
+
9
+ ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
10
+ PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
11
+
12
+ WORKDIR /app
13
+ COPY package*.json ./
14
+ RUN npm install
15
+ COPY . .
16
+
17
+ # Port wajib Hugging Face
18
+ EXPOSE 7860
19
+ CMD ["node", "index.js"]