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
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# =============================================================================
# Stage 1: Builder - Install dependencies
# =============================================================================
FROM python:3.12-slim AS builder
FROM python:3.12-slim@sha256:090ba77e2958f6af52a5341f788b50b032dd4ca28377d2893dcf1ecbdfdfe203 AS builder

# Set working directory
WORKDIR /app
Expand All @@ -16,7 +16,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

# Install UV for fast dependency management
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
COPY --from=ghcr.io/astral-sh/uv:0.11.16@sha256:440fd6477af86a2f1b38080c539f1672cd22acb1b1a47e321dba5158ab08864d /uv /usr/local/bin/uv

# Copy dependency files
COPY pyproject.toml uv.lock ./
Expand All @@ -34,7 +34,7 @@ RUN uv sync --frozen --no-dev
# =============================================================================
# Stage 2: Runtime - Minimal production image
# =============================================================================
FROM python:3.12-slim
FROM python:3.12-slim@sha256:090ba77e2958f6af52a5341f788b50b032dd4ca28377d2893dcf1ecbdfdfe203

# Metadata labels (OCI standard)
LABEL org.opencontainers.image.title="RAG Processor"
Expand Down
8 changes: 4 additions & 4 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# =============================================================================
# Stage 1: Dependencies
# =============================================================================
FROM node:22-alpine AS deps
FROM node:22-alpine@sha256:968df39aedcea65eeb078fb336ed7191baf48f972b4479711397108be0966920 AS deps

WORKDIR /app

Expand All @@ -17,7 +17,7 @@ RUN npm ci --only=production=false
# =============================================================================
# Stage 2: Builder
# =============================================================================
FROM node:22-alpine AS builder
FROM node:22-alpine@sha256:968df39aedcea65eeb078fb336ed7191baf48f972b4479711397108be0966920 AS builder

WORKDIR /app

Expand All @@ -37,7 +37,7 @@ RUN npm run build
# =============================================================================
# Stage 3: Production (nginx)
# =============================================================================
FROM nginx:alpine AS production
FROM nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a AS production

# Metadata labels
LABEL org.opencontainers.image.title="RAG Processor Frontend"
Expand Down Expand Up @@ -74,7 +74,7 @@ CMD ["nginx", "-g", "daemon off;"]
# =============================================================================
# Stage 4: Development (optional - for docker-compose dev)
# =============================================================================
FROM node:22-alpine AS development
FROM node:22-alpine@sha256:968df39aedcea65eeb078fb336ed7191baf48f972b4479711397108be0966920 AS development

WORKDIR /app

Expand Down
Loading