Skip to content

Commit

Permalink
feat: remove tracer from health road (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-nicolas authored Apr 25, 2023
1 parent 3dc7e24 commit 7d26135
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,10 @@ ARG TARGETARCH
ARG APP_SHA
ARG VERSION
ARG SEGMENT_WRITE_KEY
WORKDIR /go/src/github.com/numary/ledger
# get deps first so it's cached
COPY go.mod .
COPY go.sum .
RUN --mount=type=cache,id=gomod,target=/go/pkg/mod \
--mount=type=cache,id=gobuild,target=/root/.cache/go-build \
go mod download
WORKDIR /src
COPY . .
WORKDIR /src/components/ledger
RUN go mod download
RUN --mount=type=cache,id=gomod,target=/go/pkg/mod \
--mount=type=cache,id=gobuild,target=/root/.cache/go-build \
CGO_ENABLED=1 GOOS=linux GOARCH=$TARGETARCH \
Expand All @@ -29,7 +25,7 @@ RUN --mount=type=cache,id=gomod,target=/go/pkg/mod \

FROM ubuntu:jammy as app
RUN apt update && apt install -y ca-certificates wget && rm -rf /var/lib/apt/lists/*
COPY --from=builder /go/src/github.com/numary/ledger/numary /usr/local/bin/numary
COPY --from=builder /src/components/ledger/numary /usr/local/bin/numary
EXPOSE 3068
ENTRYPOINT ["numary"]
ENV OTEL_SERVICE_NAME ledger
Expand Down

0 comments on commit 7d26135

Please sign in to comment.