Pratama commited on
Commit
db206b9
·
verified ·
1 Parent(s): 6debed5

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +24 -0
  2. README.md +3 -3
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use Playwright image
2
+ FROM mcr.microsoft.com/playwright:focal
3
+
4
+ # Set environment variable to avoid Playwright dialog
5
+ ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD 1
6
+
7
+ # Specify work directory
8
+ WORKDIR /app
9
+
10
+ # Clone repo with authentication
11
+ RUN --mount=type=secret,id=GITHUB_REPO,required=true \
12
+ git clone $(cat /run/secrets/GITHUB_REPO) .
13
+
14
+ # Install dependencies
15
+ RUN npm install
16
+
17
+ # Install Playwright dependencies dan browser binaries
18
+ RUN npx playwright install --with-deps
19
+
20
+ # Expose port aplikasi
21
+ EXPOSE 7860
22
+
23
+ # Run the application
24
+ CMD ["npm", "start"]
README.md CHANGED
@@ -1,7 +1,7 @@
1
  ---
2
- title: Api
3
- emoji: 🚀
4
- colorFrom: purple
5
  colorTo: yellow
6
  sdk: docker
7
  pinned: false
 
1
  ---
2
+ title: Kenshiro Api
3
+ emoji:
4
+ colorFrom: gray
5
  colorTo: yellow
6
  sdk: docker
7
  pinned: false