Spaces:
Sleeping

PERDYPTO commited on
Commit
3a108f5
·
verified ·
1 Parent(s): 8db8326

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -26
Dockerfile CHANGED
@@ -1,27 +1,6 @@
1
- # Use a lightweight Node.js runtime base image
2
-
3
- FROM node:18-alpine
4
-
5
- # Set home directory permissions for Hugging Face security compliance
6
-
7
  WORKDIR /app
8
-
9
- # Copy dependency mappings
10
-
11
- COPY package*.json ./
12
-
13
- # Install verified dependency frameworks locally inside the container environment
14
-
15
- RUN npm install
16
-
17
- # Copy application script engines
18
-
19
- COPY server.js .
20
-
21
- # Hugging Face Spaces require applications to listen precisely on port 7860
22
-
23
- EXPOSE 7860
24
-
25
- # Execute server engine initialization paths
26
-
27
- CMD ["node", "server.js"]
 
1
+ FROM python:3.12-slim
 
 
 
 
 
2
  WORKDIR /app
3
+ COPY requirements.txt .
4
+ RUN pip install --no-cache-dir -r requirements.txt
5
+ COPY . .
6
+ CMD ["uvicorn", "hf_space:app", "--host", "0.0.0.0", "--port", "7860"]