Skip to content

Commit

Permalink
Fix dockerfile to download dependencies and make file to tag as latest (
Browse files Browse the repository at this point in the history
  • Loading branch information
yeshwanth1993 authored Aug 23, 2023
1 parent 2ecc3a2 commit 6b3caa5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ ARG DATE
ENV VERSION=${VERSION}
ENV COMMIT=${COMMIT}
ENV DATE=${DATE}
RUN go mod download
RUN go mod vendor
RUN CGO_ENABLED=0 go build -a -trimpath -ldflags="\
-w -s -X main.version=$VERSION \
-w -s -X main.commit=$COMMIT \
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ image: ## Builds the docker image
--build-arg COMMIT=$(COMMIT) \
--build-arg DATE=$(CURRENT_DATE) \
-t aactl:$(RELEASE_VERSION) \
-t aactl:latest \
.

.PHONY: tag
Expand Down

0 comments on commit 6b3caa5

Please sign in to comment.