mirror of
https://github.com/warmbly/warmbly.git
synced 2026-11-28 08:05:45 +00:00
feat: upgrade Alpine packages in every runtime image on each release build, and move web and admin to nginx 1.30 and the updater to the docker 29 CLI
This commit is contained in:
+4
-1
@@ -47,7 +47,10 @@ RUN --mount=type=secret,id=sentry_auth_token,required=false \
|
||||
|
||||
# Stage 2: serve the built SPA from nginx with a history fallback. The
|
||||
# entrypoint renders /config.js from container env at startup.
|
||||
FROM nginx:1.27-alpine
|
||||
FROM nginx:1.30-alpine
|
||||
# VERSION keys the build cache, so every release re-runs this against Alpine's current packages.
|
||||
ARG VERSION
|
||||
RUN apk upgrade --no-cache
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY nginx-security-headers.conf /etc/nginx/warmbly-security-headers.conf
|
||||
RUN nginx -t
|
||||
|
||||
@@ -37,6 +37,9 @@ RUN --mount=type=cache,id=gomod,target=/go/pkg/mod \
|
||||
|
||||
# Runtime stage
|
||||
FROM alpine:3.23
|
||||
# VERSION keys the build cache, so every release re-runs this against Alpine's current packages.
|
||||
ARG VERSION
|
||||
RUN apk upgrade --no-cache
|
||||
|
||||
ARG GO_TAGS=""
|
||||
# The PostgreSQL clients are here for `warmblyctl backup` and `warmblyctl restore`,
|
||||
|
||||
@@ -28,6 +28,9 @@ RUN --mount=type=cache,id=gomod,target=/go/pkg/mod \
|
||||
-o /out/warmbly ./cmd/cli
|
||||
|
||||
FROM alpine:3.23
|
||||
# VERSION keys the build cache, so every release re-runs this against Alpine's current packages.
|
||||
ARG VERSION
|
||||
RUN apk upgrade --no-cache
|
||||
|
||||
RUN apk add --no-cache ca-certificates tzdata && adduser -D -u 1000 warmbly
|
||||
|
||||
|
||||
@@ -25,6 +25,9 @@ RUN --mount=type=cache,id=gomod,target=/go/pkg/mod \
|
||||
|
||||
# Runtime stage
|
||||
FROM alpine:3.23
|
||||
# VERSION keys the build cache, so every release re-runs this against Alpine's current packages.
|
||||
ARG VERSION
|
||||
RUN apk upgrade --no-cache
|
||||
|
||||
ARG GO_TAGS=""
|
||||
RUN apk add --no-cache ca-certificates tzdata && \
|
||||
|
||||
@@ -48,6 +48,9 @@ RUN --mount=type=cache,id=gomod,target=/go/pkg/mod \
|
||||
|
||||
# Runtime stage
|
||||
FROM alpine:3.23
|
||||
# VERSION keys the build cache, so every release re-runs this against Alpine's current packages.
|
||||
ARG VERSION
|
||||
RUN apk upgrade --no-cache
|
||||
|
||||
RUN apk add --no-cache ca-certificates tzdata && \
|
||||
adduser -D -u 1000 warmbly
|
||||
|
||||
@@ -27,6 +27,9 @@ RUN mix release
|
||||
# Runtime stage. The alpine version must be at least the builder image's, or
|
||||
# the crypto NIF fails to load against an older libcrypto (missing symbols).
|
||||
FROM alpine:3.23
|
||||
# VERSION keys the build cache, so every release re-runs this against Alpine's current packages.
|
||||
ARG VERSION
|
||||
RUN apk upgrade --no-cache
|
||||
|
||||
RUN apk add --no-cache libstdc++ openssl ncurses-libs
|
||||
RUN adduser -D -u 1000 warmbly
|
||||
|
||||
@@ -21,7 +21,10 @@ RUN --mount=type=cache,id=gomod,target=/go/pkg/mod \
|
||||
CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -ldflags="-s -w -X github.com/warmbly/warmbly/internal/version.Version=$VERSION -X github.com/warmbly/warmbly/internal/version.Commit=$COMMIT -X github.com/warmbly/warmbly/internal/version.BuiltAt=$BUILT_AT" -o /out/updater ./cmd/updater
|
||||
|
||||
# Runtime: the official docker CLI image already carries the compose plugin.
|
||||
FROM docker:27-cli
|
||||
FROM docker:29-cli
|
||||
# VERSION keys the build cache, so every release re-runs this against Alpine's current packages.
|
||||
ARG VERSION
|
||||
RUN apk upgrade --no-cache
|
||||
|
||||
RUN apk add --no-cache git ca-certificates tzdata && mkdir -p /var/lib/warmbly-updater
|
||||
|
||||
|
||||
@@ -25,6 +25,9 @@ RUN --mount=type=cache,id=gomod,target=/go/pkg/mod \
|
||||
|
||||
# Runtime stage
|
||||
FROM alpine:3.23
|
||||
# VERSION keys the build cache, so every release re-runs this against Alpine's current packages.
|
||||
ARG VERSION
|
||||
RUN apk upgrade --no-cache
|
||||
|
||||
ARG GO_TAGS=""
|
||||
RUN apk add --no-cache ca-certificates tzdata && \
|
||||
|
||||
@@ -49,6 +49,9 @@ RUN --mount=type=cache,id=cargo-registry,target=/usr/local/cargo/registry \
|
||||
|
||||
# Runtime stage
|
||||
FROM alpine:3.23
|
||||
# VERSION keys the build cache, so every release re-runs this against Alpine's current packages.
|
||||
ARG VERSION
|
||||
RUN apk upgrade --no-cache
|
||||
|
||||
RUN apk add --no-cache ca-certificates libgcc && \
|
||||
addgroup -g 1000 tracking && \
|
||||
|
||||
+4
-1
@@ -47,7 +47,10 @@ RUN --mount=type=secret,id=sentry_auth_token,required=false \
|
||||
|
||||
# Stage 2: serve the built SPA from nginx with a history fallback. The
|
||||
# entrypoint renders /config.js from container env at startup.
|
||||
FROM nginx:1.27-alpine
|
||||
FROM nginx:1.30-alpine
|
||||
# VERSION keys the build cache, so every release re-runs this against Alpine's current packages.
|
||||
ARG VERSION
|
||||
RUN apk upgrade --no-cache
|
||||
RUN apk add --no-cache curl jq
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY nginx-security-headers.conf /etc/nginx/warmbly-security-headers.conf
|
||||
|
||||
Reference in New Issue
Block a user