-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
731a5ef
commit b99d034
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM ubuntu:16.04 | ||
# To build this image, run: | ||
# $ sudo docker build -t scribd-d . | ||
# And to run it: | ||
# $ docker run -it --shm-size 2g scribd-d bash | ||
# And then inside the container (don't forget xvfb): | ||
# $ xvfb-run ./scribd_downloader_3.py "https://www.scribd.com/doc/63942746/chopin-nocturne-n-20-partition" out.pdf | ||
|
||
|
||
RUN apt-get update && apt-get install -y wget python3 python3-pip firefox xvfb | ||
|
||
# Set the working directory to /app | ||
WORKDIR /app | ||
|
||
# Copy the current directory contents into the container at /app | ||
ADD . /app | ||
|
||
# Make sure we have the latest pip version | ||
RUN pip3 install --upgrade pip | ||
|
||
# Install requirements | ||
RUN pip3 install -r requirements.txt | ||
|
||
# Make sure the script is executable | ||
RUN chmod +x scribd_downloader_3.py | ||
|
||
# Download geckodriver | ||
RUN wget https://github.com/mozilla/geckodriver/releases/download/v0.19.0/geckodriver-v0.19.0-linux64.tar.gz | ||
RUN tar zxvf geckodriver-v0.19.0-linux64.tar.gz | ||
|
||
# Set-up the environment variables | ||
ENV PATH="/app:${PATH}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
selenium | ||
fpdf | ||
Pillow |