Skip to content

Commit

Permalink
fix: fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pbnj committed Oct 9, 2023
1 parent 10ed4f1 commit 2f06ce8
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
# To run spidy in a container and write all files back to the host filesystem:
# docker run --rm -it -v $PWD:/data spidy
# Usage:
# 1. Build this image:
# docker build -t spidy:latest .
# 2. Run spidy container:
# docker run --rm -it -v $PWD:/data spidy

FROM python:3.6
LABEL maintainer "Peter Benjamin <[email protected]>"
WORKDIR /src/app/
COPY . .
VOLUME [ "/data" ]
RUN pip install -r requirements.txt

RUN apt-get update \
&& apt-get install -y \
--no-install-recommends \
python3 \
python3-lxml \
python3-requests \
&& rm -rf /var/cache/apt/* \
&& pip install -r requirements.txt
VOLUME [ "/data" ]
WORKDIR /data

ENTRYPOINT [ "python", "spidy/crawler.py" ]
ENTRYPOINT [ "python", "/src/app/spidy/crawler.py" ]

0 comments on commit 2f06ce8

Please sign in to comment.