Skip to content

Commit

Permalink
[DockerFile] Fix Churner Dockerbuild (Layr-Labs#307)
Browse files Browse the repository at this point in the history
Co-authored-by: Siddharth More <Siddhi More>
  • Loading branch information
siddimore authored Mar 2, 2024
1 parent 04e96bf commit 259a5e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions operators/churner/cmd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM golang:1.21.1-alpine3.18 as builder
RUN apk add --no-cache make musl-dev linux-headers gcc git jq bash

# build node with local monorepo go modules
COPY ./operators/churner /app/churner
COPY ./operators /app/operators
COPY common /app/common
COPY core /app/core
COPY api /app/api
Expand All @@ -13,14 +13,14 @@ COPY encoding /app/encoding
COPY go.mod /app
COPY go.sum /app

WORKDIR /app/churner
WORKDIR /app/operators

RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
go build -o ./bin/churner ./cmd
go build -o ./bin/churner ./churner/cmd

FROM alpine:3.18

COPY --from=builder /app/churner/bin/churner /usr/local/bin
COPY --from=builder /app/operators/bin/churner /usr/local/bin

ENTRYPOINT ["churner"]

0 comments on commit 259a5e0

Please sign in to comment.