Debian Codegraph @

pkg/e2e/fixtures/run-test/build-once.yaml

raw
1 services:
2 # Service with pull_policy: build to ensure it always rebuilds
3 # This is the key to testing the bug - without the fix, this would build twice
4 nginx:
5 pull_policy: build
6 build:
7 dockerfile_inline: |
8 FROM alpine
9 RUN echo "Building nginx at $(date)" > /build-time.txt
10 CMD sleep 3600
11
12 # Service that depends on nginx
13 curl:
14 image: alpine
15 depends_on:
16 - nginx
17 command: echo "curl service"
18