This repository was archived by the owner on Jun 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -106,9 +106,17 @@ ENV CODEGATE_OLLAMA_URL=http://host.docker.internal:11434
106
106
ENV CODEGATE_APP_LOG_LEVEL=WARNING
107
107
ENV CODEGATE_LOG_FORMAT=TEXT
108
108
109
+ # Copy the initial models in the image to default models
110
+ RUN mkdir -p /app/default_models && cp /app/models/* /app/default_models/
111
+
109
112
# Define volume for persistent data
110
113
VOLUME ["/app/models" ]
111
114
115
+ # give the right permissions
116
+ USER root
117
+ RUN chown -R codegate /app/models
118
+ USER codegate
119
+
112
120
# Set the container's default entrypoint
113
121
EXPOSE 8989
114
122
ENTRYPOINT ["/app/scripts/entrypoint.sh" ]
Original file line number Diff line number Diff line change @@ -157,9 +157,6 @@ docker run -p 8989:8989 -p 8990:80 codegate:latest
157
157
docker pull ghcr.io/stacklok/codegate/codegate:latest
158
158
docker run -p 8989:8989 -p 8990:80 ghcr.io/stacklok/codegate/codegate:latest
159
159
160
- # With persistent data
161
- docker run -p 8989:8989 -p 8990:80 -v /path/to/volume:/app/weaviate_data ghcr.io/stacklok/codegate/codegate:latest
162
-
163
160
# With persistent models
164
161
docker run -p 8989:8989 -p 8990:80 -v /path/to/volume:/app/models ghcr.io/stacklok/codegate/codegate:latest
165
162
```
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ start_dashboard() {
29
29
30
30
# Function to start the main application
31
31
start_application () {
32
+ # first restore the models
33
+ cp /app/default_models/* /app/models/
32
34
CMD_ARGS=" --port 8989 --host 0.0.0.0 --vllm-url $CODEGATE_VLLM_URL --model-base-path $MODEL_BASE_PATH "
33
35
34
36
# Check and append additional URLs if they are set
You can’t perform that action at this time.
0 commit comments