Build binary in a docker with version (CI will provide one)
FROM golang:1.10-alpine AS builder
+ARG JANUS_VERSION='0.0.1-docker'
+
WORKDIR /go/src/github.com/hellofresh/janus
COPY . .
RUN apk add --update bash make git
-RUN export JANUS_BUILD_ONLY_DEFAULT=1 && make
+RUN export JANUS_BUILD_ONLY_DEFAULT=1 && \
+ export VERSION=$JANUS_VERSION && \
+ make
# ---
