sherlock/Dockerfile

28 lines
673 B
Docker
Raw Normal View History

FROM python:3.7-alpine as build
WORKDIR /wheels
RUN apk update --no-cache \
&& apk add --no-cache \
g++ \
gcc \
libxml2 \
libxml2-dev \
libxslt-dev \
linux-headers
COPY requirements.txt /opt/sherlock/
RUN pip3 wheel -r /opt/sherlock/requirements.txt
2018-12-31 20:53:27 +00:00
FROM python:3.7-alpine
WORKDIR /opt/sherlock
2019-04-24 19:10:57 +00: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
COPY --from=build /wheels /wheels
COPY . /opt/sherlock/
RUN pip3 install -r requirements.txt -f /wheels \
&& rm -rf /wheels \
&& rm -rf /root/.cache/pip/*
2019-04-24 19:10:57 +00:00
ENTRYPOINT ["python", "sherlock.py"]