Update Dockerfile
Browse files- Dockerfile +3 -5
Dockerfile
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
-
FROM
|
| 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 |
-
|
| 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"]
|