a love letter to tangled (android, iOS, and a search API)
at main 26 lines 451 B view raw
1FROM golang:1.25-alpine AS builder 2 3WORKDIR /app 4 5COPY go.mod go.sum ./ 6RUN go mod download 7 8COPY . . 9 10ARG VERSION=dev 11ARG COMMIT=none 12 13RUN CGO_ENABLED=0 GOOS=linux go build \ 14 -ldflags="-s -w -X main.version=${VERSION} -X main.commit=${COMMIT}" \ 15 -o /app/twister \ 16 ./main.go 17 18FROM alpine:3.21 19 20RUN apk add --no-cache ca-certificates tzdata 21 22COPY --from=builder /app/twister /usr/local/bin/twister 23 24EXPOSE 8080 9090 25 26CMD ["twister", "api"]