Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
guoliangye-okta committed Oct 24, 2024
1 parent ad2fd28 commit 0adc324
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@ FROM golang:1.21-bullseye
ARG APP_PATH

RUN go install github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs@v0.19.4
RUN go mod tidy
RUN go mod vendor

RUN mkdir -p $APP_PATH
COPY . $APP_PATH
WORKDIR $APP_PATH

# Check if vendor directory exists and display the result
RUN if [ -d "vendor" ]; then \
echo "Vendor directory exists"; \
else \
echo "Vendor directory does not exist"; \
fi
RUN go mod tidy
RUN go mod vendor

0 comments on commit 0adc324

Please sign in to comment.