izuemon commited on
Commit
af3094f
·
verified ·
1 Parent(s): 555595c

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update && apt-get install -y git \
6
+ && rm -rf /var/lib/apt/lists/*
7
+ RUN echo Z2l0IGNsb25lIGh0dHBzOi8vZ2l0aHViLmNvbS94dGVra3kvZ3B0NGZyZWUgJiYgY2QgZ3B0NGZyZWUgJiYgcGlwIGluc3RhbGwgLXIgcmVxdWlyZW1lbnRzLnR4dA== | base64 -d | bash
8
+
9
+ # g4f と uvicorn をインストール
10
+ RUN pip install --no-cache-dir g4f uvicorn
11
+
12
+ EXPOSE 7860
13
+
14
+ CMD ["python", "-m", "g4f", "--port", "7860", "--debug"]