Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ updates:
# the base images in the Dockerfile
- package-ecosystem: docker
directory: /
schedule: { interval: monthly }
schedule: { interval: weekly }
groups:
docker: { patterns: ['*'] }
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
# The build stages run on the build machine's own platform and cross-compile,
# so images for ARM boards build as fast as the x86-64 one.

# Base images are pinned by digest; Dependabot moves the digests weekly.

# --- web app ---
FROM --platform=$BUILDPLATFORM node:22-alpine AS web
FROM --platform=$BUILDPLATFORM node:22-alpine@sha256:1314fb30ec37592d5845e5a160d522c0e680972aa534549940b8d73bde88481a AS web
WORKDIR /web
COPY web/package.json web/package-lock.json ./
RUN npm ci
COPY web/ ./
RUN npm run build

# --- backend ---
FROM --platform=$BUILDPLATFORM golang:1.27-alpine AS backend
FROM --platform=$BUILDPLATFORM golang:1.27-alpine@sha256:70bd7ddea8b6cbe5d6943cde279d6b67feb10cc924fb9100d1d8757c1575b280 AS backend
ARG TARGETOS TARGETARCH TARGETVARIANT
WORKDIR /src
COPY backend/go.mod backend/go.sum ./
Expand All @@ -20,7 +22,7 @@ RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH GOARM=${TARGETVARIANT#v} \
go build -trimpath -ldflags="-s -w" -o /splitwiz .

# --- runtime ---
FROM alpine:3.22
FROM alpine:3.22@sha256:49340b346798875b5592e5d420241f2f9cfba5f47e62ebb1446a1b34734e898f
RUN apk add --no-cache ca-certificates tzdata
WORKDIR /app
COPY --from=backend /splitwiz /app/splitwiz
Expand Down
Loading