Skip to content

Commit

Permalink
Correct dockerfile's variable expression syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Dictor committed Sep 4, 2020
1 parent 815b28e commit 7174788
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM golang:1.15-alpine AS go
COPY . /web-annie
WORKDIR /web-annie
RUN apk add --no-cache git && export GIT_TAG=$(git describe --tags --abbrev=0) && export GIT_HASH=$(git rev-parse HEAD) && export BUILD_DATE=$(date '+%F-%H:%M:%S')
RUN apk --no-cache add openssl wget tar && wget 'https://github.com/iawia002/annie/releases/download/0.10.3/annie_0.10.3_Linux_64-bit.tar.gz' && tar -xvfz annie_*
RUN go build -ldflags '-X main.gitTag=${GIT_TAG} -X main.gitHash=${GIT_HASH} -X main.buildDate=${BUILD_DATE}'
RUN apk --no-cache add openssl wget tar && wget 'https://github.com/iawia002/annie/releases/download/0.10.3/annie_0.10.3_Linux_64-bit.tar.gz' && tar -xvf annie_*
RUN apk add --no-cache git
RUN export GIT_TAG=$(git describe --tags --abbrev=0) && export GIT_HASH=$(git rev-parse HEAD) && export BUILD_DATE=$(date '+%F-%H:%M:%S') && go build -ldflags "-X main.gitTag=$GIT_TAG -X main.gitHash=$GIT_HASH -X main.buildDate=$BUILD_DATE"

FROM jrottenberg/ffmpeg:4.0-alpine
COPY --from=go /web-annie /web-annie
Expand Down

0 comments on commit 7174788

Please sign in to comment.