Update Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
FROM python:3.9
|
2 |
|
|
|
|
|
3 |
RUN useradd -m -u 1000 user
|
4 |
WORKDIR /app
|
5 |
|
@@ -13,4 +15,6 @@ USER user
|
|
13 |
ENV HOME=/home/user \
|
14 |
PATH=/home/user/.local/bin:$PATH
|
15 |
|
|
|
|
|
16 |
CMD ["python", "-m", "g4f", "--port", "7860", "--g4f-api-key", "${G4F_API_KEY}"]
|
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
+
ARG G4F_API_KEY
|
4 |
+
|
5 |
RUN useradd -m -u 1000 user
|
6 |
WORKDIR /app
|
7 |
|
|
|
15 |
ENV HOME=/home/user \
|
16 |
PATH=/home/user/.local/bin:$PATH
|
17 |
|
18 |
+
ENV G4F_API_KEY $G4F_API_KEY
|
19 |
+
|
20 |
CMD ["python", "-m", "g4f", "--port", "7860", "--g4f-api-key", "${G4F_API_KEY}"]
|