mirror of
https://github.com/docker/compose.git
synced 2025-07-22 21:24:38 +02:00
Merge pull request #10508 from laurazard/tests-inline-dockerfile
Update 🥒 tests to use `dockerfile_inline`
This commit is contained in:
commit
f72d5d6099
@ -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