A URL shortener service that uses ATProto to allow self hosting and ensuring the user owns their data
1FROM golang:alpine AS builder
2
3WORKDIR /app
4
5COPY . .
6RUN go mod download
7
8COPY . .
9
10RUN CGO_ENABLED=0 go build -o at-shorter ./cmd/atshorter/main.go
11
12FROM alpine:latest
13
14RUN apk --no-cache add ca-certificates
15
16WORKDIR /app/
17COPY --from=builder /app/at-shorter .
18
19ENTRYPOINT ["./at-shorter"]