mirror of https://github.com/docker/compose.git
24 lines
496 B
Gherkin
24 lines
496 B
Gherkin
|
Feature: Build Contexts
|
||
|
|
||
|
Background:
|
||
|
Given a compose file
|
||
|
"""
|
||
|
services:
|
||
|
a:
|
||
|
build:
|
||
|
context: .
|
||
|
additional_contexts:
|
||
|
- dep=docker-image://ubuntu:latest
|
||
|
"""
|
||
|
And a dockerfile
|
||
|
"""
|
||
|
# syntax=docker/dockerfile:1
|
||
|
FROM alpine:latest
|
||
|
COPY --from=dep /etc/hostname /
|
||
|
"""
|
||
|
|
||
|
Scenario: Build w/ build context
|
||
|
When I run "compose build"
|
||
|
Then the exit code is 0
|
||
|
|