2016-06-03 00:25:58 +00:00
|
|
|
# Copyright 2016 The Kubernetes Authors.
|
2016-02-03 07:11:37 +00:00
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2016-03-21 21:22:41 +00:00
|
|
|
FROM golang:1.6.0
|
2014-09-12 17:35:02 +00:00
|
|
|
|
2016-02-20 22:25:03 +00:00
|
|
|
ADD . /go/src/github.com/GoogleCloudPlatform/kubernetes/examples/guestbook-go/_src
|
2014-09-12 17:35:02 +00:00
|
|
|
|
2016-02-16 15:42:45 +00:00
|
|
|
WORKDIR /go/src/github.com/GoogleCloudPlatform/kubernetes/examples/guestbook-go/
|
2014-09-25 23:34:20 +00:00
|
|
|
RUN cd _src/ && go get && go build -o ../bin/guestbook
|
|
|
|
RUN cp _src/guestbook/Dockerfile .
|
|
|
|
|
|
|
|
CMD tar cvzf - .
|