Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit fb4dc41

Browse files
Script changes after rebase
1 parent 0c8c1b8 commit fb4dc41

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

.github/workflows/image-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
cache-from: type=gha
3333
cache-to: type=gha,mode=max
3434
secrets: |
35-
gh_token=${{ secrets.GITHUB_TOKEN }}
35+
gh_token=${{ secrets.GHP_TOKEN }}

Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
6262
nginx \
6363
&& rm -rf /var/lib/apt/lists/*
6464

65-
# Create a non-root user and switch to it
66-
RUN useradd -m -u 1000 -r codegate
67-
6865
# Create a non-root user
69-
RUN adduser --system --no-create-home codegate --uid 1000
66+
RUN useradd -m -u 1000 -r codegate
7067

7168
# Set permissions for user codegate to run nginx
7269
RUN chown -R codegate /var/lib/nginx && \

scripts/entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ echo "Starting the application..."
1414
exec python -m src.codegate.cli serve --port 8989 --host 0.0.0.0 --vllm-url https://inference.codegate.ai
1515

1616
# Step 3: Start the Nginx server with FE
17-
nginx -g 'daemon off;'
17+
echo "Starting the dashboard.. "
18+
exec nginx -g 'daemon off;'

src/codegate/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from typing import Dict, Optional
66

77
import click
8-
from src.codegate.storage.utils import restore_storage_backup
8+
from codegate.storage.utils import restore_storage_backup
99
import structlog
1010

1111
from codegate.codegate_logging import LogFormat, LogLevel, setup_logging

0 commit comments

Comments
 (0)