Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
First Check
Commit to Help
Example CodeOn the host : Book • ➜~/Git/full-stack-fastapi-template git:(master) ✗ la ./backendtotal 56-rw-r--r-- 1 enzofournet staff 76B Feb 15 14:09 .dockerignore-rw-r--r-- 1 enzofournet staff 74B Feb 15 14:09 .gitignoredrwxr-xr-x@ 3 enzofournet staff 96B Feb 15 14:09 .venv-rwxr-xr-x 1 enzofournet staff 1.6K Feb 15 14:09 alembic.inidrwxr-xr-x 15 enzofournet staff 480B Feb 15 14:13 app-rw-r--r-- 1 enzofournet staff 1.4K Feb 15 14:09 Dockerfiledrwxr-xr-x@ 2 enzofournet staff 64B Feb 15 14:12 htmlcov-rw-r--r-- 1 enzofournet staff 1.8K Feb 15 14:09 pyproject.toml-rw-r--r-- 1 enzofournet staff 7.5K Feb 15 14:09 README.mddrwxr-xr-x 7 enzofournet staff 224B Feb 15 14:09 scriptsdrwxr-xr-x 8 enzofournet staff 256B Feb 15 14:09 testsBook • ➜~/Git/full-stack-fastapi-template git:(master) ✗ la ./backend/app total 56-rw-r--r-- 1 enzofournet staff 0B Feb 15 14:09 __init__.pydrwxr-xr-x@ 3 enzofournet staff 96B Feb 15 14:13 .venvdrwxr-xr-x 6 enzofournet staff 192B Feb 15 14:09 alembicdrwxr-xr-x 6 enzofournet staff 192B Feb 15 14:09 api-rw-r--r-- 1 enzofournet staff 921B Feb 15 14:09 backend_pre_start.pydrwxr-xr-x 6 enzofournet staff 192B Feb 15 14:09 core-rw-r--r-- 1 enzofournet staff 2.4K Feb 15 14:09 crud.pydrwxr-xr-x 4 enzofournet staff 128B Feb 15 14:09 email-templates-rw-r--r-- 1 enzofournet staff 402B Feb 15 14:09 initial_data.py-rw-r--r-- 1 enzofournet staff 923B Feb 15 14:09 main.py-rw-r--r-- 1 enzofournet staff 3.4K Feb 15 14:09 models.py-rw-r--r-- 1 enzofournet staff 917B Feb 15 14:09 tests_pre_start.py-rw-r--r-- 1 enzofournet staff 3.8K Feb 15 14:09 utils.pyBook • ➜~/Git/full-stack-fastapi-template git:(master) ✗ la ./backend/app/.venv total 0-rw-r--r--@ 1 enzofournet staff 0B Feb 15 14:09 dockerignore does not workBook • ➜~/Git/full-stack-fastapi-template git:(master) ✗ Inside the container after a full build : root@332bfcf34673:/app/backend# ls -a ./app. .venv __pycache__ api core email-templates main.py tests_pre_start.py.. __init__.py alembic backend_pre_start.py crud.py initial_data.py models.py utils.pyroot@332bfcf34673:/app/backend# ls -a ./app/.venv. ..'dockerignore does not work'root@332bfcf34673:/app/backend# root@332bfcf34673:/app/backend# ls -a. .. alembic.ini app htmlcov pyproject.toml scriptsroot@332bfcf34673:/app/backend#
DescriptionThe current As mention here :
Currently dockerignore files are not at the root of the context. Operating SystemmacOS Operating System DetailsNothing to said Python VersionUseless in this case. Additional ContextNo response |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment
-
dockerignore should be the same as the root of the build context. |
BetaWas this translation helpful?Give feedback.