Skip to content

Commit

Permalink
simulators/ethereum/sync: update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl committed Oct 30, 2023
1 parent ea0d4d7 commit ae0a6a2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions simulators/ethereum/sync/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
FROM golang:1-alpine as builder
RUN apk add --update git gcc musl-dev linux-headers

# Build the simulator executable.
ADD . /sync
RUN mkdir /sync
WORKDIR /sync

# Get dependencies.
COPY go.mod go.sum ./
RUN go mod download

# Build the simulator executable.
COPY . .
RUN go build -v .

# Build the simulator run container.
Expand Down

0 comments on commit ae0a6a2

Please sign in to comment.