manaf1234 commited on
Commit
4667beb
·
verified ·
1 Parent(s): 54d72e4

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM mcr.microsoft.com/playwright:v1.49.0-noble
2
+
3
+ WORKDIR /app
4
+
5
+ # Copy dependency mappings
6
+ COPY package*.json ./
7
+
8
+ # Install production dependencies
9
+ RUN npm install --production
10
+
11
+ # Copy application source files
12
+ COPY . .
13
+
14
+ # Expose mandatory Hugging Face port
15
+ EXPOSE 7860
16
+ ENV PORT=7860
17
+ ENV NODE_ENV=production
18
+
19
+ # Disable Playwright browser downloads since the base image already has them cached
20
+ ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
21
+
22
+ CMD ["node", "server.js"]