sherlock/Dockerfile

28 lines
622 B
Docker
Raw Normal View History

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
2019-04-24 19:10:57 +00:00
ARG VCS_REF
ARG VCS_URL="https://github.com/sherlock-project/sherlock"
2019-04-24 19:10:57 +00:00
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 --no-cache-dir -r requirements.txt -f /wheels \
&& rm -rf /wheels
WORKDIR /opt/sherlock/sherlock
2019-04-24 19:10:57 +00:00
ENTRYPOINT ["python", "sherlock.py"]