Files
d192637c39 chore: add devcontainer setup (#7995)
Adds a ready-to-use dev container so contributors can spin up a consistent, fully-provisioned development environment without manual local setup.

Co-authored-by: Hanzo Dev <[email protected]>
2026-06-03 16:57:36 +02:00

26 lines
1.0 KiB
Docker

# SPDX-License-Identifier: FSL-1.1-MIT
# Dev container image for safe-client-gateway.
# Production image is unchanged and lives at the repo-root Dockerfile.
# Microsoft only publishes major-version tags for this image, so we pin by
# digest to keep dev environments reproducible. Production currently uses
# Node 24.11.0; refresh the digest periodically (or via Renovate/Dependabot)
# to pick up the latest 24.x patch.
FROM mcr.microsoft.com/devcontainers/typescript-node:24-bookworm@sha256:14484cf5f183867fbdddd69db1991ee9a82fc50ff378f40344dcc31824eb834e
# Microsoft's image runs as the `node` user by default; switch to root
# for system installs and to enable Corepack.
USER root
# Install postgres-client for inspecting db / db-test from inside the container.
RUN apt-get update \
&& apt-get install -y --no-install-recommends postgresql-client \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Activate Corepack so Yarn 4.14.1 (pinned in .yarnrc.yml) resolves the
# project-managed release on first install.
RUN corepack enable
USER node