# Release instructions:
# 1. Update the version tag in the Dockerfile to match the version in sherlock/__init__.py
# 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/sherlock:0.16.0 -t sherlock/sherlock:latest .`
FROM python:3.12-bookworm
WORKDIR /sherlock
ARG VCS_REF
ARG VCS_URL="https://github.com/sherlock-project/sherlock"
ARG VERSION_TAG
ENV SHERLOCK_ENV=docker
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"
RUN python -m pip install --no-cache-dir --upgrade pip
COPY . /sherlock
RUN python -m pip install --no-cache-dir .
ENTRYPOINT ["sherlock"]