z90486091 commited on
Commit
b24ffde
·
1 Parent(s): e2feace
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. entrypoint.sh +5 -0
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM ghcr.io/anomalyco/opencode:latest
2
 
3
  ENV OPENCODE_SERVER_USERNAME=opencode
4
  EXPOSE 8860
 
1
+ FROM ghcr.io/anomalyco/opencode:latest
2
 
3
  ENV OPENCODE_SERVER_USERNAME=opencode
4
  EXPOSE 8860
entrypoint.sh CHANGED
@@ -8,6 +8,11 @@ fi
8
  if [ -n "$OC_CONFIG_JSON" ]; then
9
  export OPENCODE_CONFIG_CONTENT="$OC_CONFIG_JSON"
10
  fi
 
 
 
 
 
11
 
12
  # Execute opencode with passed arguments
13
  exec opencode "$@"
 
8
  if [ -n "$OC_CONFIG_JSON" ]; then
9
  export OPENCODE_CONFIG_CONTENT="$OC_CONFIG_JSON"
10
  fi
11
+
12
+ # Set LiteLLM API key if not already set
13
+ if [ -n "$LITELLM_API_KEY" ]; then
14
+ export LITELLM_API_KEY="$LITELLM_API_KEY"
15
+ fi
16
 
17
  # Execute opencode with passed arguments
18
  exec opencode "$@"