Skip to content

Commit 53c805f

Browse files
committed
Clean Dockerfiles
Signed-off-by: Christopher Crone <[email protected]>
1 parent 8dc40e3 commit 53c805f

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

client/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
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 .
66

77
FROM scratch AS run
8-
COPY --from=dev main /
9-
ENTRYPOINT ["/main"]
8+
COPY --from=dev client /
9+
ENTRYPOINT ["/client"]

server/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
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 .
66

77
FROM scratch AS run
8-
COPY --from=dev main /
9-
ENTRYPOINT ["/main"]
8+
COPY --from=dev server /
9+
ENTRYPOINT ["/server"]

0 commit comments

Comments
 (0)