Skip to content

Commit

Permalink
chore(docker): move python:3-slim, update dockerignore (UNICT-DMI#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
Herbrant authored Mar 18, 2021
1 parent 047e33e commit 8ef44cc
Show file tree
Hide file tree
Showing 2 changed files with 133 additions and 7 deletions.
138 changes: 132 additions & 6 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,134 @@
__pycache__
config/
subjs.json
*.db
*.sql
*.dist
*.git
logs.txt
Dockerfile

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# Custom
config/token.conf
logs/debugDrive.txt
logs/errors.txt
logs/logs.txt
logs/chatid.txt
classes/*.pyc
config/drive_credentials.json
config/settings.yaml
data/DMI_DB.db
module/*.pyc
pydrive
pydrive/*
.vscode
data/json/subjs.json
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3
FROM python:3-slim
WORKDIR /dmibot/

COPY requirements.txt .
Expand Down

0 comments on commit 8ef44cc

Please sign in to comment.