-
Notifications
You must be signed in to change notification settings - Fork 177
/
Dockerfile
21 lines (15 loc) · 754 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# This docker file is for local dev, the official Dockerfile is at
# https://github.com/trickstercache/trickster-docker-images/
FROM golang:1.20 as builder
COPY . /go/src/github.com/trickstercache/trickster
WORKDIR /go/src/github.com/trickstercache/trickster
RUN GOOS=linux CGO_ENABLED=0 make build
FROM alpine
LABEL maintainer "The Trickster Authors <trickster-developers@googlegroups.com>"
COPY --from=builder /go/src/github.com/trickstercache/trickster/bin/trickster /usr/local/bin/trickster
COPY examples/conf/example.full.yaml /etc/trickster/trickster.yaml
RUN chown nobody /usr/local/bin/trickster
RUN chmod +x /usr/local/bin/trickster
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
USER nobody
ENTRYPOINT ["trickster"]