add multi-arch support and CI workflow

This commit is contained in:
Arkav 2025-11-22 17:32:56 -06:00
parent 0c23dbd12b
commit 4ccec8ce22
2 changed files with 52 additions and 8 deletions

View file

@ -1,11 +1,10 @@
FROM golang:1.24-alpine
WORKDIR /app
FROM golang:1.24-alpine AS build
ARG ARCH=amd64
WORKDIR /build
COPY main.go .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} go build -o seadex-proxy main.go
RUN go build -o app main.go
FROM scratch
COPY --from=build /build/seadex-proxy /seadex-proxy
ENTRYPOINT ["/seadex-proxy"]
EXPOSE 6778
CMD ["./app"]