Upload Dockerfile
Browse files- Dockerfile +14 -0
Dockerfile
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
|
2 |
+
|
3 |
+
RUN apt-get update && apt-get install -y git
|
4 |
+
|
5 |
+
RUN git clone https://github.com/zhiyu1998/Gemi2Api-Server.git /app
|
6 |
+
|
7 |
+
RUN mkdir /.cache && chmod -R 777 /.cache
|
8 |
+
|
9 |
+
WORKDIR /app
|
10 |
+
|
11 |
+
RUN uv sync
|
12 |
+
|
13 |
+
# Command to run the application
|
14 |
+
CMD ["uv", "run", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|