Something went wrong. Try again.
a love letter to tangled (android, iOS, and a search API)
Something went wrong. Try again.
123456789101112131415161718192021222324252627FROM golang:1.25-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./RUN go mod download
COPY . .
ARG VERSION=devARG COMMIT=none
RUN CGO_ENABLED=0 GOOS=linux go build \ -ldflags="-s -w -X main.version=${VERSION} -X main.commit=${COMMIT}" \ -o /app/twister \ ./main.go
FROM alpine:3.21
RUN apk add --no-cache ca-certificates tzdata
COPY --from=builder /app/twister /usr/local/bin/twister
EXPOSE 8080 9090
CMD ["twister", "api"]