2018-01-01 14:48:08 +00:00
|
|
|
# Golang is our base images.
|
|
|
|
FROM golang:1.7
|
|
|
|
|
|
|
|
# Make a directory called simplFT
|
2018-01-01 14:57:11 +00:00
|
|
|
RUN mkdir -p /go/src/github.com/metonimie/simplFT/
|
2018-01-01 14:48:08 +00:00
|
|
|
|
|
|
|
# Copy the current dir contents into simplFT
|
2018-01-01 14:57:11 +00:00
|
|
|
ADD . /go/src/github.com/metonimie/simplFT/
|
2018-01-01 14:48:08 +00:00
|
|
|
|
|
|
|
# Set the working directory to simplFT
|
2018-01-01 14:57:11 +00:00
|
|
|
WORKDIR /go/src/github.com/metonimie/simplFT/
|
2018-01-01 14:48:08 +00:00
|
|
|
|
|
|
|
# Install dependencies
|
|
|
|
RUN go get "github.com/zyxar/image2ascii/ascii"
|
|
|
|
RUN go get "github.com/spf13/viper"
|
|
|
|
|
|
|
|
# Build the application
|
2018-01-01 14:57:11 +00:00
|
|
|
RUN go build ./main.go
|
2018-01-01 14:48:08 +00:00
|
|
|
|
|
|
|
# Run simplFT when the container launches
|
2018-01-01 14:57:11 +00:00
|
|
|
CMD ["./main", "-config-name", "docker-config"]
|