Skip to content

Commit

Permalink
ci: fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kamikazechaser committed Jun 10, 2024
1 parent fb22f26 commit 5df4b89
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ ARG TARGETPLATFORM
ARG BUILD=dev

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

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

FROM debian:bookworm-slim

Expand All @@ -21,6 +21,10 @@ WORKDIR /service

COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=build /build/* .
COPY migrations migrations/
COPY config.toml .
COPY queries.sql .
COPY LICENSE .

EXPOSE 5002

Expand Down

0 comments on commit 5df4b89

Please sign in to comment.