First docker build

This commit is contained in:
DominicJamesWhite 2025-04-09 14:23:05 +02:00
parent bc36926535
commit c692b676f6
4 changed files with 23 additions and 5 deletions

View File

@ -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.

View File

@ -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

View File

@ -0,0 +1,9 @@
{
"mcpServers": {
"canyon": {
"command": "/app/bin/canyon",
"args": ["mcp"],
"env": {}
}
}
}

View File

@ -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