build-contexts.feature 524 B

123456789101112131415161718192021
  1. Feature: Build Contexts
  2. Background:
  3. Given a compose file
  4. """
  5. services:
  6. a:
  7. build:
  8. context: .
  9. dockerfile_inline: |
  10. # syntax=docker/dockerfile:1
  11. FROM alpine:latest
  12. COPY --from=dep /etc/hostname /
  13. additional_contexts:
  14. - dep=docker-image://ubuntu:latest
  15. """
  16. Scenario: Build w/ build context
  17. When I run "compose build"
  18. Then the exit code is 0