Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compose doesnt respoect ignore file #8485

Closed
nbraun-wolf opened this issue Aug 18, 2021 · 1 comment
Closed

compose doesnt respoect ignore file #8485

nbraun-wolf opened this issue Aug 18, 2021 · 1 comment
Labels

Comments

@nbraun-wolf
Copy link

nbraun-wolf commented Aug 18, 2021

Running the below command

ocker-compose -f docker-compose.yml -f docker-compose.app.yml up --build 

with the below in docker-compose.yml

version: '3.9'
services:
  app:
    image:  foobarbaz:nightly
    build:
      context: ./
      args:
        - PIP_EXTRA_URL
    volumes:
      - .:/opt/app
    depends_on:
      - db
      - mail
    ports:
      - 8080:8080
    env_file: local.env

Doesnt respect the .dockerignore file in the same folder.

k8s
azure-pipeline-*
Makefile
Dockerfile
docker-compose*
renovate.json
README.md
.git
.github
.gitignore
.pip
.pre-commit-config.yaml
.editorconfig
.flake8
.pyproject.toml
.run-uwsgi.sh
mock-server

None of the files are ignore. I cant imagine that on every single one there is an issue with / or whatever. All of them are ignored when I build it with docker. I have also tried with context: . but its the same.

@nbraun-wolf
Copy link
Author

nbraun-wolf commented Aug 18, 2021

Im so stupid, only now I see that there is a volume definition. Sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant