Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions azure-pipelines/agentbase-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ stages:
displayName: 'App lint, tests & audit'
steps:
- checkout: self
- task: NodeTool@0
- task: UseNode@1
displayName: 'Use Node.js 20'
inputs:
versionSpec: '20.x'
version: '20.x'
- task: NpmAuthenticate@0
displayName: 'Authenticate npm → Azure Artifacts'
inputs:
Expand Down
8 changes: 4 additions & 4 deletions packages/ai-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ---- Build Stage ----
FROM mcr.microsoft.com/cbl-mariner/base/python:3.12 AS builder
FROM mcr.microsoft.com/azurelinux/base/python:3.12 AS builder
WORKDIR /app

COPY packages/ai-service/requirements.txt .
Expand All @@ -11,13 +11,13 @@ RUN pip install --no-cache-dir \
--target=/deps -r requirements.txt

# ---- Production Stage ----
FROM mcr.microsoft.com/cbl-mariner/base/python:3.12 AS production
FROM mcr.microsoft.com/azurelinux/base/python:3.12 AS production
WORKDIR /app

RUN tdnf install -y wget shadow-utils && tdnf clean all
RUN groupadd -r agentbase && useradd -r -g agentbase -s /sbin/nologin -M agentbase
RUN tdnf install -y wget

COPY --from=builder /deps /usr/local/lib/python3.12/site-packages
COPY --from=builder /deps /usr/lib/python3.12/site-packages
COPY packages/ai-service/app ./app

USER agentbase
Expand Down
6 changes: 3 additions & 3 deletions packages/core/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ---- Build Stage ----
FROM mcr.microsoft.com/cbl-mariner/base/nodejs:20 AS builder
FROM mcr.microsoft.com/azurelinux/base/nodejs:20 AS builder
WORKDIR /app

# Install pnpm
Expand Down Expand Up @@ -28,11 +28,11 @@ WORKDIR /app/packages/core
RUN npx nest build

# ---- Production Stage ----
FROM mcr.microsoft.com/cbl-mariner/base/nodejs:20 AS production
FROM mcr.microsoft.com/azurelinux/base/nodejs:20 AS production
WORKDIR /app

RUN corepack enable && corepack prepare pnpm@9 --activate
RUN tdnf install -y wget
RUN tdnf install -y wget shadow-utils && tdnf clean all

# Copy built app
COPY --from=builder /app/packages/core/dist ./dist
Expand Down
6 changes: 3 additions & 3 deletions packages/frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ---- Build Stage ----
FROM mcr.microsoft.com/cbl-mariner/base/nodejs:20 AS builder
FROM mcr.microsoft.com/azurelinux/base/nodejs:20 AS builder
WORKDIR /app

RUN corepack enable && corepack prepare pnpm@9 --activate
Expand Down Expand Up @@ -30,10 +30,10 @@ ENV NEXT_PUBLIC_AI_URL=$NEXT_PUBLIC_AI_URL
RUN npx next build

# ---- Production Stage ----
FROM mcr.microsoft.com/cbl-mariner/base/nodejs:20 AS production
FROM mcr.microsoft.com/azurelinux/base/nodejs:20 AS production
WORKDIR /app

RUN tdnf install -y wget
RUN tdnf install -y wget shadow-utils && tdnf clean all

COPY --from=builder /app/packages/frontend/.next/standalone ./
COPY --from=builder /app/packages/frontend/.next/static ./.next/static
Expand Down
Loading