1
0
mirror of https://github.com/fhamborg/news-please.git synced 2021-09-19 22:26:00 +03:00

Dockerize

This commit is contained in:
Antal Farkas
2018-05-17 10:06:00 +02:00
parent de25722036
commit dbc218e6a0
2 changed files with 14 additions and 0 deletions

10
Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM python:3.6.5-alpine3.7
RUN apk add -U --no-cache curl git make gcc python-dev libffi-dev musl-dev libxml2-dev libxslt-dev openssl-dev zlib-dev jpeg-dev
RUN git clone https://github.com/fhamborg/news-please.git /news-please
RUN cd /news-please && pip3 install -r requirements.txt
COPY docker.sh /
RUN chmod +x /docker.sh
CMD ["/docker.sh"]

4
docker.sh Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
cd /news-please/newsplease
python3 __main__.py -c ./config