Something went wrong. Try again.
unified development activity
Something went wrong. Try again.
dev.permadeath.com Dockerfile
1.1 kB · 38 lines
Dockerfile
at main
123456789101112131415161718192021222324252627282930313233343536373839# syntax=docker/dockerfile:1FROM rust:1.99.1-bookworm AS build
RUN apt-get update \ && apt-get install -y --no-install-recommends build-essential pkg-config \ && rm -rf /var/lib/apt/lists/*
WORKDIR /srcCOPY Cargo.toml Cargo.lock ./COPY src ./srcCOPY web ./webRUN cargo build --release --features aws
FROM debian:bookworm-slim
RUN apt-get update \ && apt-get install -y --no-install-recommends ca-certificates curl \ && rm -rf /var/lib/apt/lists/* \ && useradd --system --uid 10001 --create-home tally \ && mkdir -p /data \ && chown tally:tally /data
COPY --from=build /src/target/release/tally /usr/local/bin/tallyCOPY global-excludes.txt /data/global-excludes.txtCOPY global-reviewed.txt /data/global-reviewed.txt
USER tallyWORKDIR /data
ENV TALLY_DB=/data/state.sqlite3 \ TALLY_OUT=/data/dist \ RUST_LOG=info
# The scheduled task is a one-shot crawl. Override the command with# `daemon --interval 3600 --health-bind 0.0.0.0:8080` to run it as a# continuously serving process instead.ENTRYPOINT ["/usr/local/bin/tally"]CMD ["crawl"]