forked from trickstercache/trickster
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (17 loc) · 750 Bytes
/
Dockerfile
File metadata and controls
22 lines (17 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM alpine:latest as certs
RUN apk update && apk add ca-certificates
ARG BUILDPLATFORM=linux/amd64
FROM --platform=${BUILDPLATFORM} golang:1.25 as builder
ARG GIT_LATEST_COMMIT_ID
ARG TAGVER
COPY . /go/src/github.com/trickstercache/trickster
WORKDIR /go/src/github.com/trickstercache/trickster
ARG TARGETARCH
RUN GOOS=linux GOARCH=${TARGETARCH} CGO_ENABLED=0 BUILD_FLAGS=-v make build
FROM gcr.io/distroless/static-debian12 as final
LABEL maintainer "The Trickster Authors <trickster-developers@googlegroups.com>"
COPY --from=certs /etc/ssl /etc/ssl
COPY --from=builder /go/src/github.com/trickstercache/trickster/bin/trickster /trickster
COPY examples/conf/example.full.yaml /etc/trickster/trickster.yaml
USER nobody
ENTRYPOINT ["/trickster"]