Skip to content
Merged
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
20 changes: 19 additions & 1 deletion internal/sandbox/sandbox.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
FROM node:22-bookworm-slim@sha256:4d676821dff059fd00d277ee4261ef34ea712317fed0737c03941481b5760c96

RUN npm install --global npm@12.0.2 && \
# Configure package sources explicitly rather than relying on the base image's
# snapshot-pinned debian.sources, which can lag the security suite (libssh2-1
# shipped 1.10.0-3+b1 until DSA-6365-1 published 1.10.0-3+deb12u1). Pinning
# bookworm-security here keeps every build on current security fixes and never
# serves a stale cached apt layer.
RUN printf '%s\n' \
'Types: deb' \
'URIs: http://deb.debian.org/debian' \
'Suites: bookworm bookworm-updates' \
'Components: main' \
'Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg' \
'' \
'Types: deb' \
'URIs: http://deb.debian.org/debian-security' \
'Suites: bookworm-security' \
'Components: main' \
'Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg' \
> /etc/apt/sources.list.d/debian.sources && \
npm install --global npm@12.0.2 && \
npm cache clean --force && \
rm -rf /root/.npm && \
apt-get update && \
Expand Down
Loading