Spaces:
Running
Running
Create Dockerfile
Browse files- Dockerfile +15 -0
Dockerfile
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9-slim
|
2 |
+
|
3 |
+
WORKDIR /app
|
4 |
+
|
5 |
+
COPY requirements.txt .
|
6 |
+
|
7 |
+
RUN pip install --no-cache-dir Flask requests Flask-CORS tiktoken pysocks requests[socks]
|
8 |
+
|
9 |
+
# 复制应用代码
|
10 |
+
COPY . .
|
11 |
+
|
12 |
+
# 暴露端口
|
13 |
+
EXPOSE 3000
|
14 |
+
|
15 |
+
CMD flask run --host=0.0.0.0 --port=${PORT}
|