teldrive/Dockerfile

24 lines
316 B
Docker
Raw Normal View History

2024-06-22 20:29:59 +08:00
FROM golang:alpine AS builder
RUN apk add --no-cache git unzip curl make bash
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN make build
FROM scratch
WORKDIR /
COPY --from=builder /app/bin/teldrive /teldrive
EXPOSE 8080
ENTRYPOINT ["/teldrive","run","--tg-session-file","/session.db"]