-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
32 lines (26 loc) · 857 Bytes
/
Copy pathContainerfile
File metadata and controls
32 lines (26 loc) · 857 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
# SPDX-License-Identifier: MPL-2.0
# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
#
# Dev Container image for a2ml-pre-commit
# Base: Chainguard Wolfi (minimal, supply-chain-secure)
# Build: podman build -t a2ml-pre-commit-dev -f .devcontainer/Containerfile .
FROM cgr.dev/chainguard/wolfi-base:latest
# Install common development tools
RUN apk update && apk add --no-cache \
bash \
curl \
git \
openssh-client \
ca-certificates \
build-base \
posix-libc-utils \
shadow \
&& rm -rf /var/cache/apk/*
# Create non-root dev user (matches devcontainer.json remoteUser)
RUN groupadd -g 1000 nonroot || true \
&& useradd -m -u 1000 -g 1000 -s /bin/bash nonroot || true
# Set workspace directory
WORKDIR /workspaces/a2ml-pre-commit
# Default shell
ENV SHELL=/bin/bash
USER nonroot