chore: use goreleaser for binaries and static image builds (#1478)

Co-authored-by: Elias Schneider <login@eliasschneider.com>
This commit is contained in:
Kyle Mendell
2026-06-24 14:49:27 -05:00
committed by GitHub
parent d0243fe396
commit 35dcf58ee9
8 changed files with 321 additions and 289 deletions

View File

@@ -1,14 +1,15 @@
# This Dockerfile embeds a pre-built binary for the given Linux architecture
# Binaries must be built using "./scripts/development/build-binaries.sh --docker-only"
# Binaries are supplied by GoReleaser.
FROM gcr.io/distroless/static-debian12:nonroot
# TARGETARCH can be "amd64" or "arm64"
ARG TARGETARCH
ARG TARGETVARIANT
WORKDIR /app
COPY ./backend/.bin/pocket-id-linux-${TARGETARCH} /app/pocket-id
COPY linux/${TARGETARCH}/${TARGETVARIANT}/pocket-id /app/pocket-id
EXPOSE 1411
ENV APP_ENV=production

View File

@@ -1,16 +1,17 @@
# This Dockerfile embeds a pre-built binary for the given Linux architecture
# Binaries must be built using "./scripts/development/build-binaries.sh --docker-only"
# Binaries are supplied by GoReleaser.
FROM alpine:3.24.1
# TARGETARCH can be "amd64" or "arm64"
ARG TARGETARCH
ARG TARGETVARIANT
WORKDIR /app
RUN apk add --no-cache curl su-exec
COPY ./backend/.bin/pocket-id-linux-${TARGETARCH} /app/pocket-id
COPY linux/${TARGETARCH}/${TARGETVARIANT}/pocket-id /app/pocket-id
COPY ./scripts/docker /app/docker
EXPOSE 1411