A locally focused bluesky appview
at master 501 B view raw
1# Build stage 2FROM golang:1.25-alpine AS builder 3 4WORKDIR /app 5 6# Install build dependencies 7RUN apk add --no-cache git 8 9# Copy go mod files 10COPY go.mod go.sum ./ 11RUN go mod download 12 13# Copy source code 14COPY . . 15 16# Build the application 17RUN CGO_ENABLED=0 GOOS=linux go build -o konbini . 18 19# Runtime stage 20FROM alpine:latest 21 22RUN apk --no-cache add ca-certificates 23 24WORKDIR /root/ 25 26# Copy the binary from builder 27COPY --from=builder /app/konbini . 28 29# Expose the API port 30EXPOSE 4444 31 32CMD ["./konbini"]