ykl45 commited on
Commit
94ba092
·
verified ·
1 Parent(s): 2ca496e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -5
Dockerfile CHANGED
@@ -1,5 +1,4 @@
1
- FROM python:3.11-slim
2
-
3
 
4
  RUN apt-get update && apt-get install -y git
5
 
@@ -7,8 +6,7 @@ RUN git clone https://github.com/zhiyu1998/Gemi2Api-Server.git /app
7
 
8
  WORKDIR /app
9
 
10
- # Install dependencies
11
- RUN pip install --no-cache-dir -r requirements.txt
12
 
13
  # Command to run the application
14
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
 
2
 
3
  RUN apt-get update && apt-get install -y git
4
 
 
6
 
7
  WORKDIR /app
8
 
9
+ RUN uv sync
 
10
 
11
  # Command to run the application
12
+ CMD ["uv", "run", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]