Skip to content

Commit

Permalink
update fantom Datadump version
Browse files Browse the repository at this point in the history
  • Loading branch information
HanWang233 committed Jun 20, 2022
1 parent 98512fa commit b6ff773
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions docker/Dockerfile.opera
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,18 @@ RUN apk add --no-cache make gcc musl-dev linux-headers git
WORKDIR /go/go-opera
COPY . .

# ARG GOPROXY=direct
ARG GOPROXY
RUN go mod download

RUN export GIT_COMMIT=$(git rev-list -1 HEAD) && \
export GIT_DATE=$(git log -1 --date=short --pretty=format:%ct) && \
export CGO_ENABLED=1 && \
go build \
-ldflags "-s -w -X github.com/Fantom-foundation/go-opera/cmd/opera/launcher.gitCommit=$GIT_COMMIT -X github.com/Fantom-foundation/go-opera/cmd/opera/launcher.gitDate=$GIT_DATE" \
-o /tmp/opera \
./cmd/opera
RUN make opera



FROM alpine:latest

RUN apk add --no-cache ca-certificates

COPY --from=builder /tmp/opera /
COPY --from=builder /go/go-opera/build/opera /

EXPOSE 5050 18545 18546 18547 19090

WORKDIR /logs

ENTRYPOINT ["/opera"]
ENTRYPOINT ["/opera"]

0 comments on commit b6ff773

Please sign in to comment.