diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..41bde50 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,50 @@ +# Build artifacts +build/ +dist/ + +# Git/GitHub +.git/ +.github/ +.gitignore + +# Python specific files +**/__pycache__ +**/.mypy_cache/ +**/.pylintrc/ +**/.pytest_cache/ +**/*.py[cod] +**/*.egg +**/tests/ +pytest.ini +tox.ini + +# C extensions +*.so + +# pyenv +**/.python-version + +# Virtual Environments +**/.env +**/.venv +**/env/ +**/venv/ + +# Editors +**/.vscode/ +**/.idea/ + +# Docker +docker-compose.yml +docker-compose.yaml +Dockerfile + +# Project files +.editorconfig +bors.toml +CONTRIBUTING.md +README.md +assets/ + +# System files +.DS_Store diff --git a/Dockerfile b/Dockerfile index e2fe034..cb3fb8f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,9 +5,15 @@ ENV LANG C.UTF-8 WORKDIR /docs-scraper -RUN apt-get update -y && apt-get install -y python3-pip libnss3 chromium-driver +RUN : \ + && apt-get update -y \ + && apt-get install -y --no-install-recommends \ + libnss3 \ + chromium-driver \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* -RUN pip3 install pipenv +RUN pip install -U pip && pip install pipenv --no-cache-dir COPY Pipfile Pipfile COPY Pipfile.lock Pipfile.lock