2019-01-31 20:45:11 +00:00
|
|
|
FROM python:3.7-alpine as build
|
|
|
|
RUN apk add --no-cache linux-headers g++ gcc libxml2-dev libxml2 libxslt-dev
|
|
|
|
COPY requirements.txt /opt/sherlock/
|
|
|
|
WORKDIR /wheels
|
|
|
|
RUN pip3 wheel -r /opt/sherlock/requirements.txt
|
|
|
|
|
2018-12-31 20:53:27 +00:00
|
|
|
FROM python:3.7-alpine
|
2019-01-31 20:45:11 +00:00
|
|
|
COPY --from=build /wheels /wheels
|
2018-12-31 20:53:27 +00:00
|
|
|
COPY . /opt/sherlock/
|
2019-01-31 20:45:11 +00:00
|
|
|
WORKDIR /opt/sherlock
|
|
|
|
RUN pip3 install -r requirements.txt -f /wheels \
|
|
|
|
&& rm -rf /wheels \
|
|
|
|
&& rm -rf /root/.cache/pip/*
|
2018-12-31 20:53:27 +00:00
|
|
|
|
2019-01-31 20:45:11 +00:00
|
|
|
ENTRYPOINT ["python", "sherlock.py"]
|