You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
FROM python:3.7-slim-bullseye as build
|
|
|
|
WORKDIR /wheels
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y build-essential
|
|
|
|
|
|
|
|
COPY requirements.txt /opt/sherlock/
|
|
|
|
RUN pip3 wheel -r /opt/sherlock/requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
FROM python:3.7-slim-bullseye
|
|
|
|
WORKDIR /opt/sherlock
|
|
|
|
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
|
|
|
|
COPY --from=build /wheels /wheels
|
|
|
|
COPY . /opt/sherlock/
|
|
|
|
RUN pip3 install -r requirements.txt -f /wheels \
|
|
|
|
&& rm -rf /wheels \
|
|
|
|
&& rm -rf /root/.cache/pip/*
|
|
|
|
WORKDIR /opt/sherlock/sherlock
|
|
|
|
|
|
|
|
ENTRYPOINT ["python", "sherlock.py"]
|