Skip to content

Commit

Permalink
dockerfile- tab in run command
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro committed Sep 26, 2020
1 parent 475539e commit 6b9e521
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ WORKDIR /go/src/dacite
COPY . .
ARG BUILD_NUM
RUN apk add --no-cache git libc-dev musl-dev build-base gcc ca-certificates \
&& export GO_VERSION=$(go version | cut -d' ' -f3) \
&& export VCS_REF="v${BUILD_NUM}-docker-$GO_VERSION" \
&& echo $VCS_REF \
&& go install -v github.com/rakyll/statik \
&& $GOPATH/bin/statik -src="./www/" \
&& go get -v . \
&& CGO_ENABLED=1 go build -ldflags "-s -w -X main.Version=$VCS_REF" .
&& export GO_VERSION=$(go version | cut -d' ' -f3) \
&& export VCS_REF="v${BUILD_NUM}-docker-$GO_VERSION" \
&& echo $VCS_REF \
&& go install -v github.com/rakyll/statik \
&& $GOPATH/bin/statik -src="./www/" \
&& go get -v . \
&& CGO_ENABLED=1 go build -ldflags "-s -w -X main.Version=$VCS_REF" .

FROM alpine
COPY --from=golang /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
Expand Down

0 comments on commit 6b9e521

Please sign in to comment.