-
Notifications
You must be signed in to change notification settings - Fork 507
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds: test case for multistage dockerfile
- Loading branch information
Showing
2 changed files
with
109 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
pkg/iac-providers/docker/v1/testdata/file-test-data/dockerfile-withmultiple-stages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# -------- builder stage -------- # | ||
FROM golang:alpine AS builder | ||
RUN go build main.go | ||
|
||
# -------- prod stage -------- # | ||
FROM alpine:3.12.0 | ||
ENV PATH /go/bin:$PATH | ||
ENTRYPOINT ["/go/bin/main"] |