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=
|
||||
|
||||
# Access password, separated by comma. (optional)
|
||||
CODE=your-password
|
||||
CODE=
|
||||
|
||||
# You can start service behind a proxy. (optional)
|
||||
PROXY_URL=http://localhost:7890
|
||||
@ -15,6 +15,9 @@ PROXY_URL=http://localhost:7890
|
||||
# Set to "true" to enable MCP functionality
|
||||
ENABLE_MCP=
|
||||
|
||||
# Humanitec token for authenticating humctl in the container (required if ENABLE_MCP is true)
|
||||
HUMANITEC_TOKEN=
|
||||
|
||||
# (optional)
|
||||
# Default: Empty
|
||||
# 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/static ./.next/static
|
||||
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
|
||||
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": {}
|
||||
}
|
||||
}
|
||||
}
|
@ -3,9 +3,11 @@ services:
|
||||
chatgpt-next-web:
|
||||
profiles: ["no-proxy"]
|
||||
container_name: chatgpt-next-web
|
||||
image: yidadaa/chatgpt-next-web
|
||||
build: .
|
||||
ports:
|
||||
- 3000:3000
|
||||
volumes:
|
||||
- ~/.humctl:/root/.humctl
|
||||
environment:
|
||||
- OPENAI_API_KEY=$OPENAI_API_KEY
|
||||
- GOOGLE_API_KEY=$GOOGLE_API_KEY
|
||||
@ -21,9 +23,11 @@ services:
|
||||
chatgpt-next-web-proxy:
|
||||
profiles: ["proxy"]
|
||||
container_name: chatgpt-next-web-proxy
|
||||
image: yidadaa/chatgpt-next-web
|
||||
build: .
|
||||
ports:
|
||||
- 3000:3000
|
||||
volumes:
|
||||
- ~/.humctl:/root/.humctl
|
||||
environment:
|
||||
- OPENAI_API_KEY=$OPENAI_API_KEY
|
||||
- GOOGLE_API_KEY=$GOOGLE_API_KEY
|
||||
|
Loading…
Reference in New Issue
Block a user