Move node Dockerfile to parent directory
The node package needs access to the sdk directory so move the Dockerfile up one level so that both directories can be added to the build.
This commit is contained in:
parent
8ad0cf0a02
commit
2d8ec345cd
|
@ -3,7 +3,7 @@ FROM --platform=linux/amd64 docker.io/golang:1.17.5@sha256:90d1ab81f3d157ca649a9
|
||||||
# libwasmvm.so is not compatible with arm
|
# libwasmvm.so is not compatible with arm
|
||||||
|
|
||||||
# Support additional root CAs
|
# Support additional root CAs
|
||||||
COPY go.mod cert.pem* /certs/
|
COPY node/go.mod cert.pem* /certs/
|
||||||
# Debian
|
# Debian
|
||||||
RUN if [ -e /certs/cert.pem ]; then cp /certs/cert.pem /etc/ssl/certs/ca-certificates.crt; fi
|
RUN if [ -e /certs/cert.pem ]; then cp /certs/cert.pem /etc/ssl/certs/ca-certificates.crt; fi
|
||||||
# git
|
# git
|
||||||
|
@ -11,16 +11,17 @@ RUN if [ -e /certs/cert.pem ]; then git config --global http.sslCAInfo /certs/ce
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY tools tools
|
COPY node/tools tools
|
||||||
|
|
||||||
RUN --mount=type=cache,target=/root/.cache --mount=type=cache,target=/go \
|
RUN --mount=type=cache,target=/root/.cache --mount=type=cache,target=/go \
|
||||||
cd tools/ && go build -mod=readonly -o /dlv github.com/go-delve/delve/cmd/dlv
|
cd tools/ && go build -mod=readonly -o /dlv github.com/go-delve/delve/cmd/dlv
|
||||||
|
|
||||||
COPY . .
|
COPY node node
|
||||||
|
|
||||||
ARG GO_BUILD_ARGS=-race
|
ARG GO_BUILD_ARGS=-race
|
||||||
|
|
||||||
RUN --mount=type=cache,target=/root/.cache --mount=type=cache,target=/go \
|
RUN --mount=type=cache,target=/root/.cache --mount=type=cache,target=/go \
|
||||||
|
cd node && \
|
||||||
go build ${GO_BUILD_ARGS} -gcflags="all=-N -l" --ldflags '-extldflags "-Wl,--allow-multiple-definition" -X "github.com/certusone/wormhole/node/cmd/guardiand.Build=dev"' -mod=readonly -o /guardiand github.com/certusone/wormhole/node && \
|
go build ${GO_BUILD_ARGS} -gcflags="all=-N -l" --ldflags '-extldflags "-Wl,--allow-multiple-definition" -X "github.com/certusone/wormhole/node/cmd/guardiand.Build=dev"' -mod=readonly -o /guardiand github.com/certusone/wormhole/node && \
|
||||||
cp /go/pkg/mod/github.com/!cosm!wasm/wasmvm@v0.16.2/api/libwasmvm.so /usr/lib/
|
cp /go/pkg/mod/github.com/!cosm!wasm/wasmvm@v0.16.2/api/libwasmvm.so /usr/lib/
|
||||||
|
|
Loading…
Reference in New Issue