Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions disperser/cmd/apiserver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,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 disperser server with local monorepo go modules
# build dispersal api server with local monorepo go modules
COPY ./disperser /app/disperser
COPY common /app/common
COPY contracts /app/contracts
Expand All @@ -17,7 +17,7 @@ WORKDIR /app/disperser

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

FROM alpine:3.18

Expand Down
9 changes: 3 additions & 6 deletions disperser/cmd/dataapi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,16 @@ FROM golang:1.21.1-alpine3.18 as builder

RUN apk add --no-cache make musl-dev linux-headers gcc git jq bash

WORKDIR /app

COPY go.mod .
COPY go.sum .
RUN go mod download

# build data api server with local monorepo go modules
COPY ./disperser /app/disperser
COPY common /app/common
COPY contracts /app/contracts
COPY core /app/core
COPY api /app/api
COPY indexer /app/indexer
COPY pkg /app/pkg
COPY go.mod /app
COPY go.sum /app

WORKDIR /app/disperser

Expand Down