-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.runtime-base
More file actions
38 lines (28 loc) · 1.2 KB
/
Dockerfile.runtime-base
File metadata and controls
38 lines (28 loc) · 1.2 KB
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
35
36
37
38
# Lightweight runtime for Bindu agents:
# - Python 3.12 (slim)
# - Node.js 22
# - No compilers / build tools
# Base: small Python runtime
FROM python:3.12-slim-bookworm
# Minimal runtime deps
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# Bring Node.js from official image (no apt here)
FROM node:22-bookworm-slim AS node-base
FROM python:3.12-slim-bookworm
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# Copy Node binaries + global modules
COPY --from=node-base /usr/local/bin/node /usr/local/bin/
COPY --from=node-base /usr/local/lib/node_modules /usr/local/lib/node_modules
# npm / npx shims
RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm && \
ln -s /usr/local/lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx
# Python + Node already on PATH
ENV PATH="/usr/local/bin:$PATH"
LABEL org.opencontainers.image.title="bindu-runtime-base"
LABEL org.opencontainers.image.description="Runtime base for Bindu agents with Python 3.12 and Node.js 22"
LABEL org.opencontainers.image.authors="raahul dutta <raahul@getbindu.com>"
WORKDIR /app