fast72 commited on
Commit
9002547
·
verified ·
1 Parent(s): f6a1fc1

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -11
Dockerfile CHANGED
@@ -1,18 +1,13 @@
1
- FROM python:3.12-slim
2
 
3
- RUN apt-get update && \
4
- apt-get install -y ffmpeg curl build-essential git && \
5
- rm -rf /var/lib/apt/lists/*
6
 
7
  WORKDIR /app
8
-
9
- COPY requirements.txt .
10
-
11
- RUN pip install --upgrade pip setuptools wheel && \
12
- pip install --no-cache-dir -r requirements.txt
13
-
14
  COPY . .
15
 
 
16
  EXPOSE 7860
17
 
18
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM node:20-slim
2
 
3
+ RUN apt-get update && apt-get install -y ffmpeg build-essential git curl && rm -rf /var/lib/apt/lists/*
 
 
4
 
5
  WORKDIR /app
6
+ COPY package*.json ./
7
+ RUN npm install --omit=dev
 
 
 
 
8
  COPY . .
9
 
10
+ ENV PORT=7860
11
  EXPOSE 7860
12
 
13
+ CMD ["node", "index.js"]