sherlock/Dockerfile

33 lines
989 B
Docker
Raw Normal View History

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
RUN apt-get update \
2024-07-01 03:59:36 +00:00
pip3 install --no-cache-dir --upgrade pip
2024-07-01 03:59:36 +00:00
FROM python:3.12-slim-bullseye
WORKDIR /sherlock
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
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"
2024-07-01 03:59:36 +00:00
RUN pip3 install --no-cache-dir sherlock-project==$VERSION_TAG
2024-07-01 04:02:17 +00:00
WORKDIR /sherlock
2019-04-24 19:10:57 +00:00
ENTRYPOINT ["sherlock"]