ztoolx commited on
Commit
e009891
·
verified ·
1 Parent(s): f5f6f29
Files changed (1) hide show
  1. Dockerfile +9 -9
Dockerfile CHANGED
@@ -1,16 +1,16 @@
1
- FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install dependencies
6
- COPY requirements.txt .
7
- RUN pip install --no-cache-dir -r requirements.txt
8
 
9
- # Copy application code
10
- COPY main.py .
11
 
12
- # Expose the port FastAPI runs on
13
  EXPOSE 7860
14
 
15
- # Run the app
16
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM node:18-slim
2
 
3
  WORKDIR /app
4
 
5
+ # Copy package.json first for caching
6
+ COPY package.json .
7
+ RUN npm install
8
 
9
+ # Copy server code
10
+ COPY server.js .
11
 
12
+ # Expose the port
13
  EXPOSE 7860
14
 
15
+ # Start the server
16
+ CMD ["node", "server.js"]