File size: 468 Bytes
d370e87 7ed37de 98373fe d370e87 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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"] |