Uh oh!
There was an error while loading. Please reload this page.
Add network and target to build in v3.4 - #430
Conversation
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Codecov Report
@@ Coverage Diff @@## master #430 +/- ##
=======================================
Coverage 46.28% 46.28% =======================================
Files 194 194 Lines 16134 16134 =======================================
Hits 7467 7467 Misses 8278 8278 Partials 389 389 |
sirlatrom
commented
Aug 9, 2017
Seeing as multi-stage builds with targets were introduced as part of docker-ce stable 17.06, is there any chance this change will be part of any 17.06.x stable patch release? |
thaJeztah
commented
Aug 15, 2017
@sirlatrom |
dnephin
commented
Aug 15, 2017
cc @shin- just an FYI that we've added these to v3.4 |
sirlatrom
commented
Aug 17, 2017
@thaJeztah
package main
funcmain() {
}
FROM golang:1.7.3 as builder
WORKDIR /go/src/github.com/alexellis/href-counter/
RUN go get -d -v golang.org/x/net/html
COPY app.go .
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=builder /go/src/github.com/alexellis/href-counter/app .
CMD ["./app"]
version: '3.3'services:
builder:
build:
context: .target: builderapp:
build:
context: .Error message: $ docker stack deploy --compose-file docker-compose.yml mystack
services.builder.build Additional property target is not allowed
$ docker version
Client:
Version: 17.06.0-ce
API version: 1.30
Go version: go1.8.3
Git commit: 02c1d87
Built: Fri Jun 23 21:23:31 2017
OS/Arch: linux/amd64
Server:
Version: 17.06.0-ce
API version: 1.30 (minimum version 1.12)
Go version: go1.8.3
Git commit: 02c1d87
Built: Fri Jun 23 21:19:04 2017
OS/Arch: linux/amd64
Experimental: false |
Fixes#305
Related docker/compose#5011
This is basically a no-op, but it's good to keep them synced, and it will work when Compose uses the v3.4 schema.