Merge pull request #10508 from laurazard/tests-inline-dockerfile

Update 🥒 tests to use `dockerfile_inline`
This commit is contained in:
Laura Brehm 2023-05-09 17:38:05 +01:00 committed by GitHub
commit f72d5d6099
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 6 deletions

View File

@ -7,15 +7,13 @@ Background:
a:
build:
context: .
dockerfile_inline: |
# syntax=docker/dockerfile:1
FROM alpine:latest
COPY --from=dep /etc/hostname /
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"