Something went wrong. Try again.
Monorepo for Tangled
Something went wrong. Try again.
547 B · 23 lines
at master
123456789101112131415161718192021222324# Development only. Not for production use.
FROM golang:1.25-alpine AS build
RUN apk add --no-cache git
WORKDIR /srcCOPY go.mod go.sum ./RUN go mod downloadCOPY . .RUN CGO_ENABLED=0 go build -o /knotmirror ./cmd/knotmirror
FROM alpine:3.22
RUN apk add --no-cache git tini ca-certificates
COPY --from=build /knotmirror /usr/local/bin/knotmirror
EXPOSE 7000
ENTRYPOINT ["/sbin/tini", "--"]CMD ["sh", "-c", "if [ -f /usr/local/share/ca-certificates/caddy.crt ]; then update-ca-certificates; fi && exec /usr/local/bin/knotmirror serve"]