mirror of https://github.com/knative/docs.git
parent
1720b4941b
commit
c80d4ab08f
|
@ -26,7 +26,7 @@ You must meet the following requirements to complete this sample:
|
||||||
|
|
||||||
**Tip**: You can clone the [Knatve/docs repo](https://github.com/knative/docs)
|
**Tip**: You can clone the [Knatve/docs repo](https://github.com/knative/docs)
|
||||||
and then modify the source files. Alternatively, learn more by manually creating
|
and then modify the source files. Alternatively, learn more by manually creating
|
||||||
the files youself.
|
the files yourself.
|
||||||
|
|
||||||
## Creating and configuring the sample code
|
## Creating and configuring the sample code
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Use the offical Golang image to create a build artifact.
|
# Use the official Golang image to create a build artifact.
|
||||||
# This is based on Debian and sets the GOPATH to /go.
|
# This is based on Debian and sets the GOPATH to /go.
|
||||||
# https://hub.docker.com/_/golang
|
# https://hub.docker.com/_/golang
|
||||||
FROM golang:1.12 as builder
|
FROM golang:1.12 as builder
|
||||||
|
|
|
@ -70,7 +70,7 @@ cd knative-docs/docs/serving/samples/hello-world/helloworld-r
|
||||||
1. Create a new file named `Dockerfile` and copy the code block below into it.
|
1. Create a new file named `Dockerfile` and copy the code block below into it.
|
||||||
|
|
||||||
```docker
|
```docker
|
||||||
# Use the offical Golang image to create a build artifact.
|
# Use the official Golang image to create a build artifact.
|
||||||
# This is based on Debian and sets the GOPATH to /go.
|
# This is based on Debian and sets the GOPATH to /go.
|
||||||
# https://hub.docker.com/_/golang
|
# https://hub.docker.com/_/golang
|
||||||
FROM golang:1.12 as builder
|
FROM golang:1.12 as builder
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
# Use the offical Golang image to create a build artifact.
|
# Use the official Golang image to create a build artifact.
|
||||||
# This is based on Debian and sets the GOPATH to /go.
|
# This is based on Debian and sets the GOPATH to /go.
|
||||||
# https://hub.docker.com/_/golang
|
# https://hub.docker.com/_/golang
|
||||||
FROM golang:1.12 as builder
|
FROM golang:1.12 as builder
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Use the offical Golang image to create a build artifact.
|
# Use the official Golang image to create a build artifact.
|
||||||
# This is based on Debian and sets the GOPATH to /go.
|
# This is based on Debian and sets the GOPATH to /go.
|
||||||
# https://hub.docker.com/_/golang
|
# https://hub.docker.com/_/golang
|
||||||
FROM golang as builder
|
FROM golang as builder
|
||||||
|
|
|
@ -89,7 +89,7 @@ cd knative-docs/docs/serving/samples/secrets-go
|
||||||
[Deploying Go servers with Docker](https://blog.golang.org/docker).
|
[Deploying Go servers with Docker](https://blog.golang.org/docker).
|
||||||
|
|
||||||
```docker
|
```docker
|
||||||
# Use the offical Golang image to create a build artifact.
|
# Use the official Golang image to create a build artifact.
|
||||||
# This is based on Debian and sets the GOPATH to /go.
|
# This is based on Debian and sets the GOPATH to /go.
|
||||||
# https://hub.docker.com/_/golang
|
# https://hub.docker.com/_/golang
|
||||||
FROM golang as builder
|
FROM golang as builder
|
||||||
|
|
Loading…
Reference in New Issue