github.com/dnutiu/simplFT@v0.0.0-20181023061248-df4b14cdce57/Dockerfile (about) 1 # Golang is our base images. 2 FROM golang:1.7 3 4 # Make a directory called simplFT 5 RUN mkdir -p /go/src/github.com/metonimie/simplFT/ 6 7 # Copy the current dir contents into simplFT 8 ADD . /go/src/github.com/metonimie/simplFT/ 9 10 # Set the working directory to simplFT 11 WORKDIR /go/src/github.com/metonimie/simplFT/ 12 13 # Install dependencies 14 RUN go get "github.com/zyxar/image2ascii/ascii" 15 RUN go get "github.com/spf13/viper" 16 17 # Build the application 18 RUN go build ./main.go 19 20 # Run simplFT when the container launches 21 CMD ["./main", "-config-name", "docker-config"]