commit
7c34cd6ba1
@ -1,6 +1,15 @@
|
|||||||
|
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
|
||||||
|
|
||||||
FROM python:3.7-alpine
|
FROM python:3.7-alpine
|
||||||
RUN /sbin/apk add tor
|
COPY --from=build /wheels /wheels
|
||||||
COPY . /opt/sherlock/
|
COPY . /opt/sherlock/
|
||||||
RUN /usr/local/bin/pip install -r /opt/sherlock/requirements.txt
|
WORKDIR /opt/sherlock
|
||||||
|
RUN pip3 install -r requirements.txt -f /wheels \
|
||||||
|
&& rm -rf /wheels \
|
||||||
|
&& rm -rf /root/.cache/pip/*
|
||||||
|
|
||||||
ENTRYPOINT ["python", "/opt/sherlock/sherlock.py"]
|
ENTRYPOINT ["python", "sherlock.py"]
|
||||||
|
Loading…
Reference in new issue