sherlock 3.0.2

🔍 Hunt down social media accounts by username across social networks
Documentation
# Release instructions:
# 1. Update the version tag in the Dockerfile to match the version in Cargo.toml
# 2. Update the VCS_REF tag to match the tagged version's FULL commit hash
# 3. Build image with BOTH latest and version tags
#    i.e. `docker build -t sherlock/sherlocke:0.1.0 -t sherlock/sherlock:latest .`

# Stage 1: Build the Rust application
FROM rust:1.70-slim-bullseye as build

# Set the working directory inside the container
WORKDIR /sherlock

# Copy the Cargo.toml and Cargo.lock files to build the dependencies first
COPY Cargo.toml Cargo.lock ./

# Fetch dependencies and cache them
RUN cargo fetch

# Copy the rest of the application source code
COPY . .

# Build the application in release mode
RUN cargo build --release

# Stage 2: Create a minimal runtime image
FROM debian:buster-slim
WORKDIR /sherlock

ARG VCS_REF= # CHANGE ME ON UPDATE
ARG VCS_URL="https://github.com/jonaylor89/sherlock-rs"
ARG VERSION_TAG= # CHANGE ME ON UPDATE

LABEL org.label-schema.vcs-ref=$VCS_REF \
    org.label-schema.vcs-url=$VCS_URL \
    org.label-schema.name="Sherlock" \
    org.label-schema.version=$VERSION_TAG \
    website="https://sherlockproject.xyz"

# Copy the compiled binary from the build stage
COPY --from=build /sherlock/target/release/myrustapp /usr/local/bin/sherlock

# Specify the entrypoint of the container
ENTRYPOINT ["sherlock"]