Skip to content

Commit

Permalink
fix: copy client/go.mod to builder in Dockerfile (#211)
Browse files Browse the repository at this point in the history
fix: copy client/go.mod to builder
  • Loading branch information
MegaRedHand authored Dec 9, 2024
1 parent 0bfc81f commit 9e1b746
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ WORKDIR /app

# Copy go.mod and go.sum files
COPY go.mod go.sum ./
COPY client/go.mod ./client/

# Download all dependencies. Dependencies will be cached if the go.mod and go.sum files are not changed
RUN go mod download
Expand All @@ -32,4 +33,4 @@ COPY --from=builder /app/resources/ /app/resources/
EXPOSE 4242 7300

# Run app
ENTRYPOINT ["./eigenda-proxy"]
ENTRYPOINT ["./eigenda-proxy"]
1 change: 1 addition & 0 deletions Dockerfile.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

# Re-include necessary files only
!go.mod
!client/go.mod
!go.sum
!*/**/*.go
!Makefile
Expand Down

0 comments on commit 9e1b746

Please sign in to comment.