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
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
# Run the runtime stage fresh, so each release takes Alpine's latest security fixes.
no-cache-filters: runtime
cache-to: type=gha,mode=max
# A signed statement of which workflow and commit built the image; check it with
# `gh attestation verify oci://<image>:<tag> --repo <owner>/<repo>`.
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH GOARM=${TARGETVARIANT#v} \
go build -trimpath -ldflags="-s -w" -o /splitwiz .

# --- runtime ---
FROM alpine:3.24@sha256:f59abe656b692d901e184be3445e084786602108599d2a51d229c0f5a48c71bf
RUN apk add --no-cache ca-certificates tzdata
FROM alpine:3.24@sha256:f59abe656b692d901e184be3445e084786602108599d2a51d229c0f5a48c71bf AS runtime
# Take Alpine's security fixes now rather than waiting for the base image to be rebuilt.
RUN apk upgrade --no-cache \
&& apk add --no-cache ca-certificates tzdata
WORKDIR /app
COPY --from=backend /splitwiz /app/splitwiz
COPY --from=web /web/dist /app/pb_public
Expand Down
Loading