Skip to content
Open
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 docker/all-in-one.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
# -t cigarspace:demo .

# --- 1. Build the SPA --------------------------------------------------------
FROM node:20-alpine AS web-builder
FROM node:26-alpine AS web-builder
WORKDIR /web
COPY web/package.json web/package-lock.json* web/.npmrc* ./
RUN npm install --no-audit --no-fund
COPY web/. ./
RUN npm run build

# --- 2. Resolve Python deps + install package -------------------------------
FROM python:3.12-slim AS py-builder
FROM python:3.14-slim AS py-builder
ENV PIP_NO_CACHE_DIR=1 PYTHONDONTWRITEBYTECODE=1
RUN apt-get update && \
apt-get install -y --no-install-recommends build-essential libpq-dev curl && \
Expand All @@ -37,7 +37,7 @@ RUN uv sync --no-dev --frozen --no-install-project && \
uv pip install --no-deps -e .

# --- 3a. Light runtime — API + worker + web (no embedded data services) -----
FROM python:3.12-slim AS light
FROM python:3.14-slim AS light
ENV PYTHONUNBUFFERED=1 \
PATH="/app/.venv/bin:$PATH" \
APP_ENV=prod \
Expand Down
4 changes: 2 additions & 2 deletions docker/api.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# ---------------------------------------------------------------------------
# Stage 1 — Builder: install Python deps via uv into a virtualenv
# ---------------------------------------------------------------------------
FROM ghcr.io/astral-sh/uv:0.5-python3.12-bookworm-slim AS builder
FROM ghcr.io/astral-sh/uv:0.9-python3.12-bookworm-slim AS builder

ENV UV_COMPILE_BYTECODE=1 \
UV_LINK_MODE=copy \
Expand All @@ -25,7 +25,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
# ---------------------------------------------------------------------------
# Stage 2 — Runtime: minimal slim image with the virtualenv copied in
# ---------------------------------------------------------------------------
FROM python:3.12-slim-bookworm AS runtime
FROM python:3.14-slim-bookworm AS runtime

ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
Expand Down
4 changes: 2 additions & 2 deletions docker/web.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# --- Build stage -----------------------------------------------------------
FROM node:20-alpine AS build
FROM node:26-alpine AS build
WORKDIR /app

COPY package.json package-lock.json* .npmrc* ./
Expand All @@ -12,7 +12,7 @@ COPY public ./public
RUN npm run build

# --- Runtime stage ---------------------------------------------------------
FROM nginx:1.27-alpine AS runtime
FROM nginx:1.31-alpine AS runtime
COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
Expand Down
Loading