mirror of
https://github.com/gabehf/sonarr-seadex-proxy.git
synced 2026-03-08 23:18:14 -07:00
add multi-arch support and CI workflow
This commit is contained in:
parent
0c23dbd12b
commit
4ccec8ce22
2 changed files with 52 additions and 8 deletions
15
Dockerfile
15
Dockerfile
|
|
@ -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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue