Fitbit/smartling

View on GitHub
Dockerfile

Summary

Maintainability
Test Coverage
FROM golang:1.10-alpine
ARG VERSION
ENV APP_DIR "$GOPATH/src/github.com/Fitbit/smartling"
WORKDIR $APP_DIR
COPY . $APP_DIR
RUN apk add --no-cache git && \
    go get -u -v github.com/golang/dep/cmd/dep && \
    dep ensure && \
    go build -ldflags "-X main.Version=${VERSION}" -o $GOPATH/bin/smartling ./cli/... && \
    apk del git && \
    rm -rf $GOPATH/src && \
    rm -rf $GOPATH/bin/dep
WORKDIR /usr/src/app
ENTRYPOINT ["/go/bin/smartling"]