Skip to content

Commit 5a19ae7

Browse files
committed
feat: add Dependabot configuration for automated Docker updates and update base image to Debian bookworm
1 parent ac9d93d commit 5a19ae7

File tree

2 files changed

+41
-3
lines changed

2 files changed

+41
-3
lines changed

.github/dependabot.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Dependabot configuration for automated version updates
2+
# Documentation: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
3+
#
4+
# Best Practices:
5+
# - Dependabot always targets the default branch (main)
6+
# - PRs are created for version updates (never pushes directly)
7+
# - Use branch protection rules to prevent direct pushes to main
8+
# - Group updates to reduce PR noise
9+
10+
version: 2
11+
updates:
12+
# Update Docker base images (Debian)
13+
- package-ecosystem: "docker"
14+
directory: "/"
15+
schedule:
16+
interval: "weekly"
17+
day: "saturday"
18+
time: "05:22"
19+
timezone: "UTC"
20+
open-pull-requests-limit: 3
21+
labels:
22+
- "dependencies"
23+
- "docker"
24+
- "automated"
25+
commit-message:
26+
prefix: "docker"
27+
include: "scope"
28+
reviewers:
29+
- "hungrybluedev"
30+
# Group all Docker updates together
31+
groups:
32+
docker-images:
33+
patterns:
34+
- "*"

Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
FROM debian:stable-slim
1+
# Pinned versions for reproducibility
2+
# Debian: https://hub.docker.com/_/debian (bookworm = Debian 12)
3+
# Node.js LTS: https://nodejs.org (v24.x = current LTS)
4+
# Docker CLI: Latest stable from official Docker repository
5+
FROM debian:bookworm-20241111-slim
26

37
ENV DEBIAN_FRONTEND=noninteractive
48
ENV AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache
@@ -41,9 +45,9 @@ RUN install -m 0755 -d /etc/apt/keyrings && \
4145
apt-get install -y docker-ce-cli docker-buildx-plugin docker-compose-plugin && \
4246
echo "Docker CLI installed: $(docker --version)"
4347

44-
# Install Node.js LTS
48+
# Install Node.js LTS (pinned version)
4549
RUN mkdir -p "$AGENT_TOOLSDIRECTORY/node" && \
46-
NODE_VERSION=$(curl -s https://nodejs.org/dist/index.json | jq -r '[.[] | select(.lts != false)][0].version') && \
50+
NODE_VERSION="v24.11.1" && \
4751
echo "Installing Node.js $NODE_VERSION" && \
4852
NODEPATH="$AGENT_TOOLSDIRECTORY/node/${NODE_VERSION:1}/x64" && \
4953
mkdir -p "$NODEPATH" && \

0 commit comments

Comments
 (0)