g4f-api-2 / Dockerfile
izuemon's picture
Create Dockerfile
af3094f verified
raw
history blame contribute delete
430 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y git \
&& rm -rf /var/lib/apt/lists/*
RUN echo Z2l0IGNsb25lIGh0dHBzOi8vZ2l0aHViLmNvbS94dGVra3kvZ3B0NGZyZWUgJiYgY2QgZ3B0NGZyZWUgJiYgcGlwIGluc3RhbGwgLXIgcmVxdWlyZW1lbnRzLnR4dA== | base64 -d | bash
# g4f と uvicorn をインストール
RUN pip install --no-cache-dir g4f uvicorn
EXPOSE 7860
CMD ["python", "-m", "g4f", "--port", "7860", "--debug"]