hackoregon / backend-examplar-2018

an example dockerized geo-aware django backend
MIT License
4 stars 5 forks source link

Add .dockerignore #67

Closed MikeTheCanuck closed 6 years ago

MikeTheCanuck commented 6 years ago

@BrianHGrant @bhgrant8 this was something you mentioned somewhere - you have a good idea what to add? Please fire up a quick PR if so.

bhgrant8 commented 6 years ago

i could try to get something out, but may not be till later tonight.

bhgrant8 commented 6 years ago

Something like the following should be adequate. Not sure where to make a commit to in the meantime.

This is based on: https://github.com/docker/docker-py/blob/master/.dockerignore https://github.com/sameersbn/docker-gitlab/blob/master/.dockerignore https://codefresh.io/docker-tutorial/not-ignore-dockerignore/ https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/container_engine/django_tutorial/.dockerignore

.git
.cache
Dockerfile**
.gitignore
.env
*.MD
LICENSE
__pycache__
*.pyc
*.pyo
*.pyd
.Python
env
pip-log.txt
pip-delete-this-directory.txt
.tox
.coverage
.coverage.*
coverage.xml
*,cover
*.log
env.sample