Skip to content

Commit

Permalink
Updates goflow docs installation in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbalmeida committed Apr 16, 2021
1 parent 3ed1425 commit 36f13f5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ RUN addgroup -S golang \

COPY . .

RUN export GOFLOW_VERSION=$(grep goflow go.mod | cut -d" " -f2 | cut -c2-) && curl https://codeload.github.com/nyaruka/goflow/tar.gz/v$GOFLOW_VERSION | tar --wildcards --strip=1 -zx "goflow-${GOFLOW_VERSION}/docs/*"
RUN cp ./docs/en-us/*.* docs/
RUN curl -L https://github.com/nyaruka/goflow/releases/download/v$(grep goflow go.mod | cut -d" " -f2 | cut -c2-)/docs.tar.gz --output docs.tar.gz && \
tar -xf docs.tar.gz && rm docs.tar.gz


RUN go install -v ./cmd/...

Expand Down

0 comments on commit 36f13f5

Please sign in to comment.