File size: 500 Bytes
764c47b
 
405d116
764c47b
405d116
 
764c47b
 
405d116
764c47b
 
405d116
4e2003d
764c47b
 
 
 
405d116
4e2003d
764c47b
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Stage 1: official Teldrive v2 binary
FROM ghcr.io/tgdrive/teldrive:2.0.12 AS teldrive

# Stage 2: lightweight Alpine runtime (needs /bin/sh for start.sh)
FROM alpine:3.20

RUN apk add --no-cache ca-certificates tzdata \
    && adduser -D -u 1000 teldrive

# Official v2 image stores the binary at /usr/bin/teldrive
COPY --from=teldrive /usr/bin/teldrive /usr/bin/teldrive

COPY start.sh /start.sh
RUN chmod 755 /start.sh

USER teldrive
WORKDIR /home/teldrive

EXPOSE 8080

ENTRYPOINT ["/start.sh"]