dockerfile cleanup
This commit is contained in:
parent
5e8f283897
commit
95797252ed
15
Dockerfile
15
Dockerfile
@ -8,14 +8,15 @@ RUN apk add --no-cache openssh
|
||||
COPY _dev/.ssh /root/.ssh
|
||||
COPY _dev/.gitconfig /root/
|
||||
|
||||
# Get and cache deps
|
||||
COPY go.mod /plugeth-statediff/
|
||||
COPY go.sum /plugeth-statediff/
|
||||
RUN cd /plugeth-statediff && go mod download
|
||||
WORKDIR /plugeth-statediff/
|
||||
|
||||
ADD . /plugeth-statediff
|
||||
RUN cd /plugeth-statediff && \
|
||||
go build --tags linkgeth --buildmode=plugin --trimpath -o statediff.so ./main
|
||||
# Get and cache deps
|
||||
COPY go.mod .
|
||||
COPY go.sum .
|
||||
RUN go mod download
|
||||
|
||||
ADD . .
|
||||
RUN go build --tags linkgeth --buildmode=plugin --trimpath -o statediff.so ./main
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user