Skip to content
This repository has been archived by the owner on Jan 9, 2022. It is now read-only.

Commit

Permalink
Merge pull request #15 from zsnmwy/master
Browse files Browse the repository at this point in the history
add docker support
  • Loading branch information
Foair authored Sep 3, 2018
2 parents 40962aa + ec9761a commit abfcc43
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
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"]
3 changes: 3 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

python mooc.py "$@" -d "/video"

0 comments on commit abfcc43

Please sign in to comment.