11 lines
350 B
Docker
11 lines
350 B
Docker
FROM rust:1.84 as builder
|
|
WORKDIR /usr/src/app
|
|
COPY . .
|
|
RUN cargo install --path .
|
|
|
|
FROM debian:bookworm-slim
|
|
COPY --from=builder /usr/local/cargo/bin/twimg-test /usr/local/bin/twimg-test
|
|
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
|
|
WORKDIR /app
|
|
CMD ["bash", "-c", "while :; do twimg-test; sleep 60; done"]
|