# Builds an image containing the iplookup binary and little else. FROM docker.io/library/rust:slim COPY . /iplookup RUN cd /iplookup && cargo build --all-targets --release FROM debian:bullseye-slim COPY --from=0 /iplookup/target/release/iplookup /iplookup RUN chmod +x /iplookup