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

Add an extra docker-compose intermediate step #100

Open
nimpo opened this issue Nov 29, 2024 · 0 comments
Open

Add an extra docker-compose intermediate step #100

nimpo opened this issue Nov 29, 2024 · 0 comments

Comments

@nimpo
Copy link

nimpo commented Nov 29, 2024

When adding build to the docked compose. I suggest perhaps showing how one might use the new image built in the previous steps via the image keyword thus:
What was:

services:
  spuc:
    image: spuacv/spuc:latest
...
    volumes:
    ...
      - ./stats.py:/spuc/plugins/stats.py

which fails as the stats.py requires pandas.
Do this as the next step first, using what we just learned:

services:
  spuc:
    image: spuc-stats

then move onto.

services:
  spuc:
    build:
      context: .
      dockerfile: Dockerfile

Then replace that with the build: tag.


NB

  build:
    context: .
    dockerfile: Dockerfile

is equivalent to

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

No branches or pull requests

1 participant