-
Notifications
You must be signed in to change notification settings - Fork 2
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
Mario Melcher
authored and
Mario Melcher
committed
Mar 24, 2022
1 parent
ff7c8e7
commit 377be8e
Showing
4 changed files
with
47 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 |
---|---|---|
|
@@ -10,3 +10,7 @@ __pycache__ | |
|
||
# ignore temporary folder for downloads | ||
tmp | ||
|
||
# ignore data | ||
data/* | ||
!data/.gitkeep |
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 python:3-slim | ||
|
||
RUN apt-get update \ | ||
&& apt-get upgrade -y \ | ||
&& apt-get install -y --no-install-recommends \ | ||
sudo \ | ||
ca-certificates \ | ||
netbase \ | ||
pdftohtml \ | ||
&& apt-get clean \ | ||
&& apt-get autoremove \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ENV USER_NAME="user" \ | ||
USER_UID="1000" \ | ||
USER_GID="1000" | ||
|
||
RUN groupadd --gid $USER_GID $USER_NAME \ | ||
&& useradd --gid $USER_GID --uid $USER_UID --create-home $USER_NAME | ||
|
||
USER user | ||
|
||
COPY . /home/user | ||
|
||
ENV PATH="${PATH}:/home/user/.local/bin" | ||
RUN cd /home/user \ | ||
&& python -m pip install --upgrade pip \ | ||
&& pip install -r tools/requirements.txt | ||
|
||
|
||
VOLUME ["/home/user/data"] | ||
ENTRYPOINT ["python3"] | ||
CMD ["/home/user/tools/download_and_convert.py"] |
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
Empty file.