teldrive / Dockerfile
mmnosratii's picture
Upgrade Teldrive to v2.0.12
764c47b
Raw History Blame Contribute Delete
500 Bytes
# 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"]