diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8669ee9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM python:2.7-slim + +WORKDIR /app + +COPY . . + +RUN pip install beautifulsoup4 lxml + +CMD ["python", "ppf.py"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..519cf80 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: '3.8' + +services: + ppf: + build: . + volumes: + - .:/app + working_dir: /app + command: python ppf.py + environment: + - PYTHONUNBUFFERED=1 \ No newline at end of file