File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 1
1
FROM golang:1.14 AS dev
2
- WORKDIR /
3
- COPY main.go /
4
- RUN go mod init github.com/compose-spec/compatibility-test-suite /client
5
- RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o main /main.go
2
+ WORKDIR /go/src
3
+ COPY . .
4
+ RUN go mod init github.com/compose-spec/conformance-tests /client
5
+ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /client .
6
6
7
7
FROM scratch AS run
8
- COPY --from=dev main /
9
- ENTRYPOINT ["/main " ]
8
+ COPY --from=dev client /
9
+ ENTRYPOINT ["/client " ]
Original file line number Diff line number Diff line change 1
1
FROM golang:1.14 AS dev
2
- WORKDIR /
3
- COPY main.go /
4
- RUN go mod init github.com/compose-spec/compatibility-test-suite /server
5
- RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o main /main.go
2
+ WORKDIR /go/src
3
+ COPY . .
4
+ RUN go mod init github.com/compose-spec/conformance-tests /server
5
+ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /server .
6
6
7
7
FROM scratch AS run
8
- COPY --from=dev main /
9
- ENTRYPOINT ["/main " ]
8
+ COPY --from=dev server /
9
+ ENTRYPOINT ["/server " ]
You can’t perform that action at this time.
0 commit comments