feat(microservices): manage code queue through v3s
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
FROM oven/bun:1-debian
|
||||
ARG CODE_QUEUE_BASE_IMAGE=oven/bun:1-debian
|
||||
FROM ${CODE_QUEUE_BASE_IMAGE}
|
||||
|
||||
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
|
||||
|
||||
RUN apt-get update \
|
||||
RUN (command -v codex >/dev/null 2>&1 && command -v opencode >/dev/null 2>&1 && command -v docker >/dev/null 2>&1 && command -v rg >/dev/null 2>&1) \
|
||||
|| (apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
bash \
|
||||
bubblewrap \
|
||||
@@ -39,11 +41,11 @@ RUN apt-get update \
|
||||
&& npm install -g @openai/codex@0.128.0 opencode-ai@1.14.48 playwright@1.59.1 \
|
||||
&& playwright install --with-deps chromium \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
&& rm -rf /var/lib/apt/lists/*)
|
||||
|
||||
WORKDIR /app/src/components/microservices/code-queue
|
||||
COPY src/components/microservices/code-queue/package.json ./package.json
|
||||
RUN bun install --production
|
||||
RUN test -d node_modules/postgres || bun install --production
|
||||
COPY src/components/shared /app/src/components/shared
|
||||
COPY src/components/microservices/code-queue/tsconfig.json ./tsconfig.json
|
||||
COPY src/components/microservices/code-queue/src ./src
|
||||
|
||||
Reference in New Issue
Block a user