Skip to content

Commit

Permalink
fix: Dockerfile build path
Browse files Browse the repository at this point in the history
  • Loading branch information
kamikazechaser committed Oct 8, 2024
1 parent 74db5d9 commit 1acbaa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ ARG TARGETPLATFORM
ARG BUILD=dev

RUN echo "Building on $BUILDPLATFORM, building for $TARGETPLATFORM"
WORKDIR /code
WORKDIR /build

COPY . .
RUN go mod download
RUN go build -o eth-indexer-bootstrap -ldflags="-X main.build=${BUILD} -s -w" cmd/bootstrap/main.go
RUN go build -o /build/eth-indexer -ldflags="-X main.build=${BUILD} -s -w" cmd/service/*.go
RUN go build -o eth-indexer -ldflags="-X main.build=${BUILD} -s -w" cmd/service/*.go

FROM debian:bookworm-slim

Expand Down

0 comments on commit 1acbaa0

Please sign in to comment.