This repository has been archived by the owner on Jan 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from zsnmwy/master
add docker support
- Loading branch information
Showing
2 changed files
with
19 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,16 @@ | ||
FROM python:alpine | ||
|
||
WORKDIR /app | ||
|
||
|
||
RUN apk add --update --no-cache --virtual build_images g++ gcc libxslt-dev git && \ | ||
git clone https://github.com/Foair/course-crawler.git /app && \ | ||
pip install requests BeautifulSoup4 lxml -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com && \ | ||
apk del build_images && \ | ||
rm -rf /app/README.md /app/LICENSE | ||
|
||
COPY ./docker-entrypoint.sh /app | ||
|
||
RUN chmod 777 ./docker-entrypoint.sh | ||
|
||
ENTRYPOINT ["./docker-entrypoint.sh"] |
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 @@ | ||
#!/bin/sh | ||
|
||
python mooc.py "$@" -d "/video" |