Skip to content

Commit d15d840

Browse files
chapterjasonclaude
andcommitted
Make devcontainer base image configurable via BASE_IMAGE build arg
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 1a3ea77 commit d15d840

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.devcontainer/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM debian:stable-slim
1+
ARG BASE_IMAGE=ghcr.io/sourecode/devcontainer-base:latest
2+
FROM ${BASE_IMAGE}
23

34
ARG USERNAME
45
ARG USER_UID=1000

.devcontainer/devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"build": {
44
"dockerfile": "Dockerfile",
55
"args": {
6+
"BASE_IMAGE": "${localEnv:DEVCONTAINER_BASE_IMAGE:ghcr.io/sourecode/devcontainer-base:latest}",
67
"USERNAME": "${localEnv:DEVCONTAINER_USERNAME:dev}",
78
"USER_UID": "${localEnv:DEVCONTAINER_USER_UID:1000}",
89
"USER_GID": "${localEnv:DEVCONTAINER_USER_GID:1000}"

0 commit comments

Comments
 (0)