1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-10-04 01:17:49 +08:00

update docker build scripts

This commit is contained in:
bingohuang
2017-05-25 10:51:38 +08:00
parent 474ae465cc
commit a82d70724b
6 changed files with 50 additions and 6 deletions

View File

@@ -1,16 +1,16 @@
FROM golang:1.7
FROM hub.c.163.com/library/golang:1.8.2
# Copy the runtime dockerfile into the context as Dockerfile
COPY Dockerfile.run /go/bin/Dockerfile
COPY ./www /go/bin/www
COPY . /go/src/github.com/play-with-docker/play-with-docker
COPY . /go/src/github.com/bingohuang/docker-labs
WORKDIR /go/src/github.com/play-with-docker/play-with-docker
WORKDIR /go/src/github.com/bingohuang/docker-labs
RUN go get -v -d ./...
RUN CGO_ENABLED=0 go build -a -installsuffix nocgo -o /go/bin/play-with-docker .
RUN CGO_ENABLED=0 go build -a -installsuffix nocgo -o /go/bin/docker-labs .
# Set the workdir to be /go/bin which is where the binaries are built
WORKDIR /go/bin