Update Dockerfile
Browse files- Dockerfile +5 -16
Dockerfile
CHANGED
@@ -1,19 +1,8 @@
|
|
1 |
-
FROM
|
2 |
|
3 |
-
WORKDIR /app
|
4 |
|
5 |
-
#
|
6 |
-
|
7 |
-
COPY ./main.py /app
|
8 |
-
COPY ./requirements.txt /app
|
9 |
|
10 |
-
|
11 |
-
|
12 |
-
ENV ALLOWED_TOKENS=["your_token_1"]
|
13 |
-
ENV BASE_URL=https://api.groq.com/openai/v1
|
14 |
-
|
15 |
-
# Expose port
|
16 |
-
EXPOSE 8000
|
17 |
-
|
18 |
-
# Run the application
|
19 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|
|
|
1 |
+
FROM ghcr.io/snailyp/gemini-balance:latest
|
2 |
|
|
|
3 |
|
4 |
+
# 暴露端口(如果需要)
|
5 |
+
EXPOSE 7860
|
|
|
|
|
6 |
|
7 |
+
# 启动命令
|
8 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|