mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-09-27 13:46:37 +08:00
First docker build
This commit is contained in:
parent
bc36926535
commit
c692b676f6
@ -5,7 +5,7 @@ OPENAI_API_KEY=sk-xxxx
|
|||||||
DEEPSEEK_API_KEY=
|
DEEPSEEK_API_KEY=
|
||||||
|
|
||||||
# Access password, separated by comma. (optional)
|
# Access password, separated by comma. (optional)
|
||||||
CODE=your-password
|
CODE=
|
||||||
|
|
||||||
# You can start service behind a proxy. (optional)
|
# You can start service behind a proxy. (optional)
|
||||||
PROXY_URL=http://localhost:7890
|
PROXY_URL=http://localhost:7890
|
||||||
@ -15,6 +15,9 @@ PROXY_URL=http://localhost:7890
|
|||||||
# Set to "true" to enable MCP functionality
|
# Set to "true" to enable MCP functionality
|
||||||
ENABLE_MCP=
|
ENABLE_MCP=
|
||||||
|
|
||||||
|
# Humanitec token for authenticating humctl in the container (required if ENABLE_MCP is true)
|
||||||
|
HUMANITEC_TOKEN=
|
||||||
|
|
||||||
# (optional)
|
# (optional)
|
||||||
# Default: Empty
|
# Default: Empty
|
||||||
# Google Gemini Pro API key, set if you want to use Google Gemini Pro API.
|
# Google Gemini Pro API key, set if you want to use Google Gemini Pro API.
|
||||||
|
@ -40,6 +40,8 @@ COPY --from=builder /app/public ./public
|
|||||||
COPY --from=builder /app/.next/standalone ./
|
COPY --from=builder /app/.next/standalone ./
|
||||||
COPY --from=builder /app/.next/static ./.next/static
|
COPY --from=builder /app/.next/static ./.next/static
|
||||||
COPY --from=builder /app/.next/server ./.next/server
|
COPY --from=builder /app/.next/server ./.next/server
|
||||||
|
COPY --from=builder /app/bin /app/bin
|
||||||
|
RUN chmod +x /app/bin/*
|
||||||
|
|
||||||
RUN mkdir -p /app/app/mcp && chmod 777 /app/app/mcp
|
RUN mkdir -p /app/app/mcp && chmod 777 /app/app/mcp
|
||||||
COPY --from=builder /app/app/mcp/mcp_config.default.json /app/app/mcp/mcp_config.json
|
COPY --from=builder /app/app/mcp/mcp_config.default.json /app/app/mcp/mcp_config.json
|
||||||
|
9
app/mcp/mcp_config.default.json
Normal file
9
app/mcp/mcp_config.default.json
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"mcpServers": {
|
||||||
|
"canyon": {
|
||||||
|
"command": "/app/bin/canyon",
|
||||||
|
"args": ["mcp"],
|
||||||
|
"env": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,11 +1,13 @@
|
|||||||
version: "3.9"
|
version: "3.9"
|
||||||
services:
|
services:
|
||||||
chatgpt-next-web:
|
chatgpt-next-web:
|
||||||
profiles: [ "no-proxy" ]
|
profiles: ["no-proxy"]
|
||||||
container_name: chatgpt-next-web
|
container_name: chatgpt-next-web
|
||||||
image: yidadaa/chatgpt-next-web
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
|
volumes:
|
||||||
|
- ~/.humctl:/root/.humctl
|
||||||
environment:
|
environment:
|
||||||
- OPENAI_API_KEY=$OPENAI_API_KEY
|
- OPENAI_API_KEY=$OPENAI_API_KEY
|
||||||
- GOOGLE_API_KEY=$GOOGLE_API_KEY
|
- GOOGLE_API_KEY=$GOOGLE_API_KEY
|
||||||
@ -19,11 +21,13 @@ services:
|
|||||||
- OPENAI_SB=$OPENAI_SB
|
- OPENAI_SB=$OPENAI_SB
|
||||||
|
|
||||||
chatgpt-next-web-proxy:
|
chatgpt-next-web-proxy:
|
||||||
profiles: [ "proxy" ]
|
profiles: ["proxy"]
|
||||||
container_name: chatgpt-next-web-proxy
|
container_name: chatgpt-next-web-proxy
|
||||||
image: yidadaa/chatgpt-next-web
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
|
volumes:
|
||||||
|
- ~/.humctl:/root/.humctl
|
||||||
environment:
|
environment:
|
||||||
- OPENAI_API_KEY=$OPENAI_API_KEY
|
- OPENAI_API_KEY=$OPENAI_API_KEY
|
||||||
- GOOGLE_API_KEY=$GOOGLE_API_KEY
|
- GOOGLE_API_KEY=$GOOGLE_API_KEY
|
||||||
|
Loading…
Reference in New Issue
Block a user