mirror of
https://github.com/flibusta-apps/telegram_files_cache_server.git
synced 2025-12-06 06:35:38 +01:00
25 lines
446 B
Docker
25 lines
446 B
Docker
FROM rust:bullseye AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN cargo build --release --bin telegram_files_cache_server
|
|
|
|
|
|
FROM debian:bullseye-slim
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y openssl ca-certificates curl jq \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN update-ca-certificates
|
|
|
|
COPY ./scripts/*.sh /
|
|
RUN chmod +x /*.sh
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=builder /app/target/release/telegram_files_cache_server /usr/local/bin
|
|
CMD ["/start.sh"]
|