From 5df4b89123650a65554411cca2a8541252ba2103 Mon Sep 17 00:00:00 2001 From: Mohammed Sohail Date: Mon, 10 Jun 2024 16:18:24 +0800 Subject: [PATCH] ci: fix Dockerfile --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 93986a2..6456595 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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