2023-03-13 11:49:29 +01:00
|
|
|
FROM python:3.11-alpine as build
|
2019-01-31 15:45:11 -05:00
|
|
|
WORKDIR /wheels
|
2019-12-04 10:59:57 -03:00
|
|
|
RUN apk add --no-cache \
|
2019-07-13 22:18:18 +02:00
|
|
|
g++ \
|
|
|
|
gcc \
|
2019-12-20 14:47:16 +00:00
|
|
|
git \
|
2019-07-13 22:18:18 +02:00
|
|
|
libxml2 \
|
|
|
|
libxml2-dev \
|
|
|
|
libxslt-dev \
|
|
|
|
linux-headers
|
|
|
|
COPY requirements.txt /opt/sherlock/
|
2019-01-31 15:45:11 -05:00
|
|
|
RUN pip3 wheel -r /opt/sherlock/requirements.txt
|
|
|
|
|
2019-07-13 22:18:18 +02:00
|
|
|
|
2023-03-13 11:49:29 +01:00
|
|
|
FROM python:3.11-alpine
|
2019-01-31 15:45:11 -05:00
|
|
|
WORKDIR /opt/sherlock
|
2019-04-24 21:10:57 +02:00
|
|
|
ARG VCS_REF
|
|
|
|
ARG VCS_URL="https://github.com/sherlock-project/sherlock"
|
|
|
|
LABEL org.label-schema.vcs-ref=$VCS_REF \
|
|
|
|
org.label-schema.vcs-url=$VCS_URL
|
2019-07-13 22:18:18 +02:00
|
|
|
COPY --from=build /wheels /wheels
|
|
|
|
COPY . /opt/sherlock/
|
|
|
|
RUN pip3 install -r requirements.txt -f /wheels \
|
|
|
|
&& rm -rf /wheels \
|
|
|
|
&& rm -rf /root/.cache/pip/*
|
2020-07-21 23:52:41 +02:00
|
|
|
WORKDIR /opt/sherlock/sherlock
|
2019-04-24 21:10:57 +02:00
|
|
|
|
2019-01-31 15:45:11 -05:00
|
|
|
ENTRYPOINT ["python", "sherlock.py"]
|