2024-07-01 03:59:36 +00:00
|
|
|
# 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.15.0 -t sherlock/sherlock:latest .`
|
|
|
|
|
|
|
|
FROM python:3.12-slim-bullseye as build
|
|
|
|
WORKDIR /sherlock
|
2019-01-31 20:45:11 +00:00
|
|
|
|
2022-10-14 15:44:13 +00:00
|
|
|
RUN apt-get update \
|
2024-07-01 03:59:36 +00:00
|
|
|
pip3 install --no-cache-dir --upgrade pip
|
2019-07-13 20:18:18 +00:00
|
|
|
|
2024-07-01 03:59:36 +00:00
|
|
|
FROM python:3.12-slim-bullseye
|
|
|
|
WORKDIR /sherlock
|
2022-09-30 03:10:06 +00:00
|
|
|
|
2024-07-01 03:59:36 +00:00
|
|
|
ARG VCS_REF= # CHANGE ME ON UPDATE
|
2019-04-24 19:10:57 +00:00
|
|
|
ARG VCS_URL="https://github.com/sherlock-project/sherlock"
|
2024-07-01 03:59:36 +00:00
|
|
|
ARG VERSION_TAG= # CHANGE ME ON UPDATE
|
2022-09-30 03:10:06 +00:00
|
|
|
|
2024-07-08 05:42:04 +00:00
|
|
|
ENV SHERLOCK_ENV=docker
|
|
|
|
|
2019-04-24 19:10:57 +00:00
|
|
|
LABEL org.label-schema.vcs-ref=$VCS_REF \
|
2024-07-01 03:59:36 +00:00
|
|
|
org.label-schema.vcs-url=$VCS_URL \
|
|
|
|
org.label-schema.name="Sherlock" \
|
|
|
|
org.label-schema.version=$VERSION_TAG \
|
|
|
|
website="https://sherlockproject.xyz"
|
2022-09-30 03:10:06 +00:00
|
|
|
|
2024-07-01 03:59:36 +00:00
|
|
|
RUN pip3 install --no-cache-dir sherlock-project==$VERSION_TAG
|
2022-09-30 03:10:06 +00:00
|
|
|
|
2024-07-01 04:02:17 +00:00
|
|
|
WORKDIR /sherlock
|
2019-04-24 19:10:57 +00:00
|
|
|
|
2024-03-02 21:21:32 +00:00
|
|
|
ENTRYPOINT ["sherlock"]
|