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: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
env:
REGISTRY: ${{ secrets.REGISTRY }}
VERSION: ${{ steps.meta.outputs.version }}
PLATFORM: linux/amd64
PLATFORM: linux/amd64,linux/arm64
EXTRA_TAGS: -t ${{ secrets.REGISTRY }}/browser-ui:latest
run: |
make deploy
Expand All @@ -96,4 +96,4 @@ jobs:
run: |
gh release create "${{ github.ref_name }}" \
--title "${{ github.ref_name }}" \
--generate-notes
--generate-notes
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:22-alpine AS ui-builder
FROM --platform=$BUILDPLATFORM node:22-alpine AS ui-builder
ARG VERSION=develop
ENV VERSION=$VERSION
WORKDIR /src
Expand All @@ -7,13 +7,14 @@ RUN npm ci --prefix ./src
COPY src/ ./src/
RUN npm run build --prefix ./src

FROM golang:1.25.0 AS go-builder
FROM --platform=$BUILDPLATFORM golang:1.25.0 AS go-builder
ARG TARGETOS
ARG TARGETARCH
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
ENV CGO_ENABLED=0 GOOS=linux GOARCH=amd64
RUN go build -trimpath -ldflags="-s -w" -o /out/browser-ui ./cmd/browser-ui
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -trimpath -ldflags="-s -w" -o /out/browser-ui ./cmd/browser-ui

FROM gcr.io/distroless/static:nonroot
WORKDIR /app
Expand Down
Loading