FROM golang:alpine AS builder WORKDIR /app RUN apk add --no-cache git RUN --mount=type=secret,id=GITHUB_REPO,required=true \ git clone -b hf --single-branch $(cat /run/secrets/GITHUB_REPO) . # RUN git clone https://github.com/Rippanteq7/telerealm . RUN go mod download RUN CGO_ENABLED=0 GOOS=linux go build -o server main.go FROM alpine:latest WORKDIR /app RUN apk --no-cache add ca-certificates COPY --from=builder /app/server ./server EXPOSE 7860 CMD ["./server"]