mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-04 11:07:03 +09:00
16 lines
278 B
Docker
16 lines
278 B
Docker
FROM golang:1.24-alpine as builder
|
|
|
|
ARG TARGETOS
|
|
ARG TARGETARCH
|
|
|
|
COPY main.go go.mod go.sum /src/
|
|
WORKDIR /src
|
|
|
|
RUN go build -o /token-proxy -ldflags '-extldflags "-static" -w -s' main.go
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=builder /token-proxy /token-proxy
|
|
|
|
ENTRYPOINT ["/token-proxy"]
|