Skip to content

Commit

Permalink
fix: remove proto from docker build as well
Browse files Browse the repository at this point in the history
Signed-off-by: Praveen Yadav <pyadav9678@gmail.com>
  • Loading branch information
pyadav committed Mar 14, 2024
1 parent d42bb22 commit b3c6c77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
3 changes: 1 addition & 2 deletions docker/Dockerfile.gateway.dev
@@ -1,12 +1,11 @@
FROM golang:1.21-alpine3.18 as builder
FROM golang:1.22-alpine3.18 as builder
RUN apk add make
RUN GO111MODULE=on GOBIN=/usr/local/bin go install \
github.com/bufbuild/buf/cmd/buf@v1.29.0
RUN mkdir /workspace

WORKDIR /workspace
COPY ./gateway ./gateway
COPY ./protos ./protos
COPY ./common ./common

COPY ./go.work .
Expand Down
9 changes: 2 additions & 7 deletions gateway/Makefile
Expand Up @@ -13,19 +13,14 @@ lint: ## Run linters
lint-fix:
golangci-lint run --fix

build: gen vet ## Build AI Gateway server
build: vet ## Build AI Gateway server
scripts/build.sh
.PHONY: build

dbuild: gen vet
dbuild: vet
GOOS=linux scripts/build.sh
.PHONY: dbuild

gen:
@echo "🧹 Generating proto files.."
sh -c "cd ../protos && make all"
.PHONY: gen

clean: ## Clean AI Gateway server
rm -rf bin
.PHONY: clean
Expand Down

0 comments on commit b3c6c77

Please sign in to comment.