mirror of
https://github.com/tgdrive/teldrive.git
synced 2024-11-13 03:04:34 +08:00
24 lines
316 B
Text
24 lines
316 B
Text
|
|
||
|
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"]
|