2023-03-13 10:50:52 +00:00
|
|
|
FROM python:3.11-slim-bullseye as build
|
2019-01-31 20:45:11 +00:00
|
|
|
WORKDIR /wheels
|
|
|
|
|
2019-07-13 20:18:18 +00:00
|
|
|
COPY requirements.txt /opt/sherlock/
|
2022-10-14 15:44:13 +00:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y build-essential \
|
|
|
|
&& pip3 wheel -r /opt/sherlock/requirements.txt
|
2019-07-13 20:18:18 +00:00
|
|
|
|
2023-03-13 10:50:52 +00:00
|
|
|
FROM python:3.11-slim-bullseye
|
2019-01-31 20:45:11 +00:00
|
|
|
WORKDIR /opt/sherlock
|
2022-09-30 03:10:06 +00:00
|
|
|
|
2019-04-24 19:10:57 +00:00
|
|
|
ARG VCS_REF
|
|
|
|
ARG VCS_URL="https://github.com/sherlock-project/sherlock"
|
2022-09-30 03:10:06 +00:00
|
|
|
|
2019-04-24 19:10:57 +00:00
|
|
|
LABEL org.label-schema.vcs-ref=$VCS_REF \
|
|
|
|
org.label-schema.vcs-url=$VCS_URL
|
2022-09-30 03:10:06 +00:00
|
|
|
|
2019-07-13 20:18:18 +00:00
|
|
|
COPY --from=build /wheels /wheels
|
|
|
|
COPY . /opt/sherlock/
|
2022-09-30 03:10:06 +00:00
|
|
|
|
2022-10-01 12:00:29 +00:00
|
|
|
RUN pip3 install --no-cache-dir -r requirements.txt -f /wheels \
|
|
|
|
&& rm -rf /wheels
|
2022-09-30 03:10:06 +00:00
|
|
|
|
2020-07-21 21:52:41 +00:00
|
|
|
WORKDIR /opt/sherlock/sherlock
|
2019-04-24 19:10:57 +00:00
|
|
|
|
2019-01-31 20:45:11 +00:00
|
|
|
ENTRYPOINT ["python", "sherlock.py"]
|