siputzx commited on
Commit
844fb5f
·
verified ·
1 Parent(s): c5137ce

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Gunakan image Node.js yang mendukung Playwright
2
+ FROM mcr.microsoft.com/playwright:focal
3
+
4
+ # Set environment variable untuk menghindari dialog pada Playwright
5
+ ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD 1
6
+
7
+ # Tentukan work directory
8
+ WORKDIR /app
9
+
10
+ # Copy file package.json dan package-lock.json
11
+ COPY package*.json ./
12
+
13
+ # Install dependencies
14
+ RUN npm install
15
+
16
+ # Copy semua file ke container
17
+ COPY . .
18
+
19
+ # Install Playwright dependencies dan browser binaries
20
+ RUN npx playwright install --with-deps
21
+
22
+ # Expose port untuk aplikasi
23
+ EXPOSE 7860
24
+
25
+ # Start aplikasi
26
+ CMD ["npm", "start"]