An implementation of the ATProto statusphere example app but in Go
1FROM golang:alpine AS builder
2
3WORKDIR /app
4
5COPY . .
6RUN go mod download
7
8COPY . .
9
10RUN CGO_ENABLED=0 go build -o statusphere-go ./cmd/main.go
11
12FROM alpine:latest
13
14RUN apk --no-cache add ca-certificates
15
16WORKDIR /app/
17COPY --from=builder /app/statusphere-go .
18
19ENTRYPOINT ["./statusphere-go"]