April 2018
Intermediate to advanced
250 pages
5h 42m
English
We will edit the last line to be image: chanwit/hello:v1. Again, do not forget to replace my Docker ID with yours. We then build with the faas-cli build command. We use -f to specify a function definition file for the CLI. Please note that there will be two stages and 17 steps to build this Dockerfile:
$ faas-cli build -f ./hello.yml[0] > Building: hello.Clearing temporary build folder: ./build/hello/Preparing ./hello/ ./build/hello/functionBuilding: chanwit/hello:v1 with go template. Please wait..Sending build context to Docker daemon 6.144kBStep 1/17 : FROM golang:1.8.3-alpine3.6 ---> fd1ada53b403...Step 17/17 : CMD ./fwatchdog ---> Running in a904f6659c33 ---> f3b8ec154ee9Removing intermediate container a904f6659c33 ...
Read now
Unlock full access