g2api / Dockerfile
Zayn777's picture
Create Dockerfile
d7e13ab verified
raw
history blame contribute delete
316 Bytes
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
RUN apt-get update && apt-get install -y git
RUN git clone https://github.com/zhiyu1998/Gemi2Api-Server.git /app
RUN mkdir /.cache && chmod -R 777 /.cache
WORKDIR /app
RUN uv sync
CMD ["uv", "run", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]