- Dockerfile +4 -0
Dockerfile
CHANGED
@@ -2,7 +2,11 @@
|
|
2 |
# you will also find guides on how best to write your Dockerfile
|
3 |
|
4 |
FROM yidadaa/chatgpt-next-web:latest
|
|
|
|
|
5 |
|
|
|
|
|
6 |
# WORKDIR /code
|
7 |
|
8 |
# COPY ./requirements.txt /code/requirements.txt
|
|
|
2 |
# you will also find guides on how best to write your Dockerfile
|
3 |
|
4 |
FROM yidadaa/chatgpt-next-web:latest
|
5 |
+
ENV OPENAI_API_KEY=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
|
6 |
+
ENV CODE=123456
|
7 |
|
8 |
+
# (可选)暴露所需端口,如果基础镜像已经暴露了所需端口,则这一步不是必需的
|
9 |
+
EXPOSE 3000
|
10 |
# WORKDIR /code
|
11 |
|
12 |
# COPY ./requirements.txt /code/requirements.txt
|