mirror of
https://github.com/docker/compose.git
synced 2025-07-21 20:54:32 +02:00
tests: inline dockerfile
Signed-off-by: Laura Brehm <laurabrehm@hey.com>
This commit is contained in:
parent
90bcf610b3
commit
ee70085fba
@ -7,15 +7,13 @@ Background:
|
|||||||
a:
|
a:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
|
dockerfile_inline: |
|
||||||
|
# syntax=docker/dockerfile:1
|
||||||
|
FROM alpine:latest
|
||||||
|
COPY --from=dep /etc/hostname /
|
||||||
additional_contexts:
|
additional_contexts:
|
||||||
- dep=docker-image://ubuntu:latest
|
- 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
|
Scenario: Build w/ build context
|
||||||
When I run "compose build"
|
When I run "compose build"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user