-
Notifications
You must be signed in to change notification settings - Fork 82
Expand file tree
/
Copy pathContainerfile
More file actions
34 lines (24 loc) · 866 Bytes
/
Containerfile
File metadata and controls
34 lines (24 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# AI Maestro Dev Container
# Build: podman build -t ai-maestro-dev -f Containerfile .
# Test: podman run --rm ai-maestro-dev yarn test
FROM docker.io/library/node:20.19.2-bookworm-slim
# Install system deps for native modules (node-pty, cozo-node)
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
python3 \
git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy dependency manifests first for layer caching
COPY package.json yarn.lock ./
# Install dependencies as root (native modules need build tools)
RUN yarn install --frozen-lockfile && yarn cache clean
# Copy full source
COPY . .
# Ensure non-root user owns the workspace
RUN chown -R node:node /app
USER node
# Ensure enough heap for Next.js builds
ENV NODE_OPTIONS="--max-old-space-size=4096"
# Default command: run tests
CMD ["yarn", "test"]